Install GLPI on Mandriva 2006
Forword a rpm now exists for Mandriva. You can find it into cooker section (contrib) on FTP public servers.
We assume you have a fully functionnal Mandriva system on your machine. Considered Mandriva version is the 2006.
Installation of Apache, PHP and MySQL
First, we install the web server (Apache www.apache.org ).
As GLPI is coded in PHP, we need to install the PHP module for apache.
Usage of urpmi tool will make us this task quite easy. It may ask you to install additional packages that are required : don't answer no for their installation.
As root (super-user), enter the following command (for all other commands, we assume you have root privilegies to execute them) :
installation of apache server
[root@Mandriva ~]# urpmi apache Un des paquetages suivants est nécessaire : 1- apache-mpm-prefork-2.0.54-13mdk.i586 : Implements a non-threaded, pre-forking web server (stable) (to install) 2- apache-mpm-peruser-2.0.54-13mdk.i586 : Implements a hybrid multi-process, multi-threaded web server (experimental) (to install) 3- apache-mpm-worker-2.0.54-13mdk.i586 : Implements a hybrid multi-threaded multi-process web server (experimental) (to install) Que choisissez-vous ? (1-3)
Choose “1” (it is the only one stable ;) and answer yes for installing dependencies.
Now, install PHP and some needed modules :
Modules php-imap, php-ldap, php-curl and php-domxml are optional : you can install them if you want to use external authentication sources (LDAP, IMAP, CAS) or not.
[root@Mandriva ~]# urpmi apache2-mod_php php-mysql php-xml php-imap php-ldap php-curl php-domxml
Before restarting Apache service, we need to verify the « /etc/php.ini » content. To do so, enter the following command (which opens the file with the vim editor : you can choose any other editor of your choice) and verifiy that memory_limit is set to a value bigger than 8 Mb.
(By default, Mandriva sets this value to 32 Mb)
[root@Mandriva ~]# vim /etc/php.ini
Now, you can restart Apache.
[root@Mandriva ~]# /etc/init.d/httpd start
Glpi works with a MySQL database ( www.mysql.com ) : you need to install a MySQL server and the PHP linked to libraries.
[root@Mandriva ~]# urpmi mysql Un des paquetages suivants est nécessaire : 1- MySQL-4.1.12-3mdk.i586 : MySQL: a very fast and reliable SQL database engine (to install) 2- MySQL-Max-4.1.12-3mdk.i586 : MySQL - server with Berkeley DB and Innodb support (to install) 3- MySQL-NDB-4.1.12-3mdk.i586 : MySQL - server with Berkeley DB, Innodb and NDB Cluster support (to install) Que choisissez-vous ? (1-3)
Choose “1” if you don't know which one to install and answer “yes” about installing the dependencies. Once it is installed, a message appears on your screen : To enable networking the user has to edit or delete the /etc/sysconfig/mysqld file. It means you need to edit or delete the files to make mysql work on your network.
Don't forget to start MySQL :
[root@Mandriva ~]# /etc/init.d/mysqld start
Now, all needed tools are installed but some steps are still required.
First we have to assign a password to the MySQL root user (for evident security reasons).
[root@Mandriva ~]# mysqladmin -u root password 'password'
The 'password' must be your password. Now we create the database glpidb which will be used by GLPI.
[root@Mandriva ~]# mysql -u root -p enter password : ******* mysql> create database glpidb;
We create the glpiuser (with its password) in the same time and give him some required privilegies :
[root@Mandriva ~]# mysql>grant all privileges on glpidb.* to glpiuser@localhost mysql>identified by 'glpiuser_password';
If you want to esay manage your database, you can use a tool such phpmyadmin : it is a PHP written web tool which need only a web browser to be used. You should use urpmi phpmyadmin to see a miracle :) (the installation of phpmyadmin is not described here, because it is not the main purpose of this documentation).
Download and installation of GLPI
Unpack the archive into the folder /var/www/html created for you by Apache :
[root@Mandriva ~]# tar -xvzf glpi-X.XX.tar.gz -C /var/www/html
If you take a look in the directory /var/www/html, you can see that a glpi folder (same name as the archive) has been created.
It is now time to give the right permissions on some folders :
[root@Mandriva ~]# cd /var/www/html [root@Mandriva ~]# chown -R apache glpi
This command changes the owner of the entered folders to apache user in order to let him make modifications into.
Now everything is performed through the web browser of your choice. Visit the link « http://your_server/glpi ».
As the first connection, a step-by-step installation procedure will be launched. The interface is quite intuitive, you just need to give the asked informations. Once it is finished, the system asks you to give the identification informations you entered before and then you can begin to use GLPI.
In case of big mistake (you have forget your own GLPI access informations…), to start « again » the installation process, delete the file :
Connecting again on « http://your_server/glpi » starts again installation process (in fact, the process is launched because of the missing file config_db.ini).
More informations about GLPI configuration itself : see [Install GLPI→31].