Install GLPI on a GNU/Linux Debian
We start by assuming that you have a running Debian Woody on your computer.
Apache, PHP and MySQL installation
First, install the Apache Web server (wwww.apache.org)
As GLPI is programmed in PHP, it is necessary to install the PHP module for Apache.
The use of the apt-get tool will make it easier.
As root (all commands below have to be entered as root) :
hector# hector# apt-get install apache php4
This will warn you of the packages that are about to install. You should say yes to these when prompted.
GLPI uses a MySQL (www.mysql.com) database for its back end, so it is neccessary to install mysql-server and its associated PHP libraries.
hector# hector# apt-get install mysql-server php4-mysql
We have now enough software to run GLPI, but there are some additional steps to perform.
First, we have to create a password for the root user of the MySQL server (for evident security reasons).
hector# hector# mysqladmin -u root password 'password'
Now we are going to create the glpidb database which will be used by GLPI.
hector#mysql -u root -p enter password : ******* mysql> create database glpidb;
We are also going to create glpiuser user (with a password) and to give it the necessary rights :
hector# mysql>grant all privileges on glpidb.* to glpiuser@localhost mysql>identified by 'glpiuser_password';
If you want to administer your database from an easy to use front end, you can install phpmyadmin. It's MySQL database management tool written in PHP you can use with a web browser. An apt-get phpmyadmin should be all you need to run to install this, but any additonal steps required are out of the scope of this page.
Download and install GLPI
You now have to download the latest version of GPLI on the http://glpi-project.org website, “Download” section. (Debian has its own .deb package for GPLI available via apt-get, however this currently is several revisons behind the latest release).
Then you have to unzip the tarball in the /var/www directory Apache created for you :
hector# hector#tar -xvzf glpi-X.X.X.tar.gz -C /var/www/
Change directory to /var/www
Now you will have to give rights to some folders :
hector# hector#cd /var/www/glpi hector#chmod 777 backups/dump glpi/config docs
In your web browser, go to http://your_server/glpi where you should see a GLPI install page.
Follow the step-by-step instructions which will guide you through the install steps. Once the installed has completed you will be presented with the GLPI login page. To re-run this installer, incase of any errors or missed steps above, delete the following file :
By deleting this file, and re-visiting http://your_server/glpi will cause the installation script to re-run.
For more information about GLPI configuration : see Install GLPI