Trace:

Differences

This shows you the differences between the selected revision and the current version of the page.

en:glpimandrake 2015/07/03 09:46 current
Line 1: Line 1:
 +====== Install GLPI on a Mandrake ======
 +
 +
 +We start from the hypothesis that you have a running Mandrake 10 on your computer.
 +
 +
 +==== Apache, PHP and MySQL installation ====
 +
 +First, install the Apache Web server (wwww.apache.org)
 +
 +While GLPI is programmed in PHP, it is necessary to install the Apache module which allows to run PHP.
 +
 +The using of urpmi tool will make it easier. If it asks you to install more packages, it's that they are necessary, so you have to accept their installation.
 +
 +In root (now, all commandline input had to be entered in root) :
 +
 +=== First we install apacje ===
 +
 +<code>
 +hector#
 +hector# urpmi apache2
 +
 +</code>
 +
 +=== Now PHP and some necessary modules : ===
 +
 +The php-imap and php-ldap are optionals and you have to install them only if you wan't to use that type of external authentification.
 +
 +<code>
 +hector#
 +hector# urpmi apache2-mod_php php-mysql php-imap php-ldap
 +</code>
 +
 +Now we can launch apache
 +<code>
 +hector#
 +hector# service httpd start
 +</code>
 +
 +
 +Glpi is also running with a MySQL (www.mysql.com) database, it's why we have to install mysql-server and his associated PHP librairies.
 +
 +<code>
 +hector#
 +hector# urpmi mysql
 +
 +</code>
 +
 +Don't forget to start it
 +
 +<code>
 +hector#
 +hector# service mysql start
 +</code>
 +
 +We have now enough software to run GLPI, but there is some steps to do.
 +
 +First, we have to create a password for the root user of MySQL server (for evident security reasons).
 +
 +<code>
 +hector#
 +hector# mysqladmin -u root  password 'password'
 +
 +</code>
 +
 +
 +Now we are going to create the glpidb database which will be used by GLPI.
 +
 +
 +
 +
 +<code>
 +
 +hector#mysql -u root -p
 +enter password : *******
 +mysql> create database glpidb;
 +</code>
 +
 +
 +We are also going to create glpiuser user (with his password) and to give him necessary rights :
 +
 +<code>
 +hector#
 +mysql>grant all privileges on glpidb.* to glpiuser@localhost
 +mysql>identified by 'glpiuser_password';
 +
 +</code>
 +
 +If you wan't to administrate easily your databse, you can install phpmyadmin. It's a PHP tool you can use with a browser. An apt-get phpmyadmin will do miracles (but his installation isn't the main objective of this documentation).
 +
 +
 + ==== Download and install GLPI ====
 +
 +
 +You now have to download the last version of GPLI on the [[ http://glpi-project.org | http://glpi-project.org ]] website, "Download" section.
 +
 +
 +Then you have to unzip the tarball in the /var/www directory Apache created for you :
 +
 +<code>
 +hector#
 +hector#tar -xvzf glpi-X.X.X.tar.gz -C  /var/www/
 +
 +</code>
 +
 +
 +If you take a turn into /var/www/ directory, you will see GLPI has created a GLPI folder.
 +
 +
 +Now you will have to give rights to some folders :
 +
 +
 +<code>
 +hector#
 +hector#cd /var/www/glpi
 +hector#chmod 777 /backups/dump    /glpi/config  /docs/
 +</code>
 +
 +
 +====  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 [[ http://glpi-project.org/article.php3?id_article=61 | Install GLPI ]]