Installing GPLI without OCSNG

GLPI is an open source help desk software.  I like it, I use it and I think it’s the best thing going.  If you add an OCSNG agent to it you can install that on client workstations (Linux or Windows and maybe a MAC!) to gather data about your workstations.  It’s quite useful in an organization.  I’m using it in a broader sense with multiple customers so I don’t particularly need the OCSNG ability but it is NICE to have for some shops.  JumpBox has a wonderful implementation all wrapped up and ready to go if you’re interested in it although for some it might be cost prohibitive.  They do have nice features for backing up, upgrading and restoring so you get what you pay for :p.


* Most of the commands I use are from however a few are different because they didn’t work for me or some of the config in the tutorial is ‘off’, I think this will help others so I posted it

sudo -i

apt-get install openssh-server

ifconfig –> ssh to your server IP or hostname :p

login, sudo -i

aptitude install apache2

aptitude install libapache2-mod-php5 php5-cli php5-common php5-cgi

apt-get install mysql-server php5-mysql

MySQL Root User Password: mysupersecretpw <– Come up with your own
* I like using a site I found to help me and I usually truncate them:

apt-get install php5-imap

mkdir /var/ftp

cd /var/ftp

* I had a difficult time doing the wget thing with an error that read: “Unable to establish SSL connection“.


So – to get around this download it with a web browser and sftp it to your server :p – if it worked for you skp to the tar xzvf *.gz command

cd /home/%yourlocaluserhere% <– Where I sftp’d my file to

mv *.gz /var/ftp

cd /var/ftp

tar xzvf *.gz

* Hopefully the wildcard isn’t throwing you off, if you have more than one .gz file in the directory it might unzip them all :p  You might need to specify the actual entire file name then like ‘mv glpi-0.78.4.tar.gz’

cd glpi

mv * /var/www <– Moves all files and folders indiscriminately to the /var/www folder

cd /var/www

mv index.html /var/ftp <– We do this or we get the “It Works!” HTML instead of GLPI’s php file :p

chown -R www-data:www-data config/ files/

Do an ‘ls -l’ to confirm the change of ownership occured for giggles :p

nano /etc/php5/apache2/php.ini

Scroll ALL THE WAY TO THE BOTTTOM and type in:

;My comment here, adding PHP with MySQL extension *
; *

* Note all you really need above is the ‘’, I got cute with the other stuff

Hitting ‘ctrl alt x’ gets you the exit prompt from nano

Restart apache2:

/etc/init.d/apache2 restart

Now open a web browser and browse here: http://youripofyourserverhere

When you get to the setup with these options this is what I have:

Mysql server : localhost
Mysql user : root
Mysql password : mysupersecretpw <– The one you picked before in the MySQL setup

* You can create a special user to run this thing but I wouldn’t unless
you’re extremely paranoid. I believe by ‘default’ mysql is ONLY
accessible via localhost thus minimizing your security footprint
but ‘best practice’ (if there is such a thing) you wouldn’t want to
run this thing with the root account EVEN THOUGH it’s not the same
password as your ACTUAL root account on your server!

* Moreover, if I were to make an account to run it other than root
I’d make one that’s super funky like:
‘wurSt*tiCS6||{}+=445&YYIBv885422..;,@~1’ <– Hard to guess eh? :p and I’d then make an equally hard password!

* If you need to know how to do that let me know and I can post it but for now I won’t bother because I’m lazy.

Click the ‘Mysql’ radio button

When successful you should get a thing that says:

Default logins / passwords are:

glpi/glpi for the administrator account
tech/tech for the technician account
normal/normal for the normal account
post-only/postonly for the postonly account

You can delete or modify these accounts as well as the initial data.

You’re done ;-) – now you want to login with glpi/glpi and change passwords for each account, create new accounts, setup email checking, auto responders, and the works!  If you’re doing this on a virtual machine you might want to make a full backup real quick, tweak things the way you want, test and if it doesn’t  work out blow it away and restore your VM.