Install GLPI on Fedora Core 5
Installation of Apache, PHP and MySQL
To make GLPI usable, you need to install some services, like a web server (Apache), a MySQL server and the PHP language interpreter.
I. Installation of the different servers :
Those of you that like graphical installations can follow this documentation . It is based on Fedora Core 4 but still available for the version 5.
1. Apache and PHP :
We will use the « yum » command to install the different packages needed for the installation. First, we install the Apache server and the PHP interpreter. Then we install the MySQL server.
To install Apache, enter the command below into a shell console. You must be logged as root user (super-user) to launch this command and the following.
[root@fedora ~]# su - (enter root password)
yum install httpd
If you encounter a message “Nothing to do”, it is because you already have installed the Apache server and PHP interpreter. To be sure of it, enter the following command :
[root@localhost ~]# rpm -qa |grep -i httpd
If the command returns a line like “httpd-2.2.0-5.1.2”, it means the server is correctly installed and that you are using version 2.2.
Now, it is time to install PHP. In order to make GLPI work, you have to install the PHP module and the module allowing PHP to be linked to a MySQL server (packages php and php-mysql). To use external authentication sources, you may need to install some other packages like php-ldap (LDAP) or php-imap (IMAP).
yum install php php-mysql
Be aware : no package for using CAS authentication has been found yet. If you know how to do, let us a message on our forum or sent us an email.
To install the MySQL server, enter the follow command :
yum install mysql-server
Once the different services are installed, you just need to configure them… Don't forget to restart them after the configuration files are modified. By default, the variable “memory_limit” of « php.ini » file is set to 8 (Mb). This value is not big enough to make GLPI work in optimal conditions. Assign the value 16, or more, to the variable to have a normal or optimal behavior.
/etc/init.d/httpd restart /etc/init.d/mysqld restart
II. Configuration of the different services :
You don't need to configure the Apache server. Nevertheless, you need to create the database « glpidb » and the user « glpiuser » who manages the database : don't forget to give him the good rights.
1. configuration of MySQL :
Open a shell console and enter the following commands :
mysqladmin -u root password 'root'
(second 'root' is the chosen password, but you can use another one, as you prefer.)
This command improves your MySQL server security while giving it a unique password. Once this is done, create the « glpidb » database with these commands :
mysql -u root -p (enter the MySQL root password)
(this command allows you to configure mysql)
create database glpidb;
(create the database glpidb)
grant all privileges on glpidb.* to glpiuser@localhost identified by 'glpi';
(gives the good rights to the user « glpiuser » on tables of the « glpidb » database. In this example, « glpi » is the password given to the user « glpiuser »)
If you want GLPI to be accessible to the employees of your company, you may replace localhost by an IP address or a name known by your DNS server, for example glpi.mycompany.com.
III. Installation and configuration of GLPI :
First download the last archive of GLPI. To do so, follow this link . Uncompress the archive in the folder « /var/www/html/ » :
tar -xvzf glpi-0.65.tar.gz -C /var/www/html/
Once this is done, go into this folder with this command :
The “chown” command is used to modify the files owner. Once you have executed the following command, files will be owned by “apache” user. The aim of this command is to allow “apache” to write into the folders glpi/config, docs/ and backup/dump in order GLPI works properly.
chown -R apache glpi
You now just need to type this web address into your favorite browser http://localhost/glpi to access the last step of GLPI installation. Don't forget to make a backup of your “glpidb” database and documents (folder glpi/documents) thant you have uploaded if you want to perform an upgrade of GLPI.
- database name : glpidb
- database username : glpiuser
- glpiuser password : previously defined :) (glpi in our example)
On Fedora Core, two subsystems can interfere with or, even, prevent an installation. Verify that your firewall rules and your SELinux permissions will not interfere with the function GLPI.