This is an old revision of the document!


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 Apache module which allows to run PHP.

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

Some questions will be asked to you, you can answer all of them by Yes.

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

GLPI Configuration

Now, you will do all online, you have to “visit” your « http://your_server/glpi » directory with a browser.

At the first connection to this adress, an install process step-by-step will begin. The frontend is easy, you just have to enter informations asked. Once over, the system will ask you the identification you have types in and you will be able to use GPLI.

In case of a major error (ie: you have lost your access to GLPI…), to “rerun” this installation process, you just have delete the followinf file :

  • glpi/config/config_db.php

The next connection into « http://your_server/glpi » folder will run again the configuration process (in fact, it's because there is no « config_db.php » file).

For more informations about GLPI configuration : see Install GLPI