Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:glpifedora [2006/08/18 04:26]
127.0.0.1 external edit
en:glpifedora [2015/07/03 11:46]
Line 1: Line 1:
  
-====== 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 : === 
- 
-You that likes graphical installations can follow this [[ http://​glpi-project.org/​article.php3?​id_article=96 | documentation ]], based on a 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. 
- 
-<​code>​[root@fedora ~]# su - (enter root password)</​code>​ 
-<​code>​yum install httpd</​code>​ 
- 
-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 : 
-<​code>​[root@localhost ~]# rpm -qa |grep -i httpd</​code>​ 
- 
-If the command returns you 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). 
-<​code>​yum install php php-mysql</​code>​ 
- 
-Be careful : 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. 
- 
-== 2. MySQL == 
- 
-To install the MySQL server, enter the follow command : 
-<​code>​yum install mysql-server</​code>​ 
- 
-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 to the variable or more to have a normal or optimal behavior. 
-<​code>/​etc/​init.d/​httpd restart /​etc/​init.d/​mysqld restart</​code>​ 
- 
-=== 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 : 
-<​code>​mysqladmin -u root password '​root'</​code>​ 
- 
-(second '​root'​ is the choosen 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 » databse with these commands : 
-<​code>​mysql -u root -p (enter the MySQL root password)</​code>​ 
- 
-(this command allows you to configure mysql) 
-<​code>​create database glpidb;</​code>​ 
- 
-(create the database glpidb) 
-<​code>​grant all privileges on glpidb.* to glpiuser@localhost identified by '​glpi';</​code>​ 
- 
-(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 [[ http://​glpi-project.org/​article.php3?​id_article=3 | link ]]. Uncompress the archive in the folder « /​var/​www/​html/​ » : 
-<​code>​tar -xvzf glpi-0.65.tar.gz -C /​var/​www/​html/</​code>​ 
- 
-Once this is done, go into this folder with this command : 
-<​code>​cd /​var/​www/​html</​code>​ 
- 
-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. 
-<​code>​chown -R apache glpi</​code>​ 
- 
-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. 
- 
-Remember : 
-  *   ​database name : glpidb 
-  *   ​database username : glpiuser 
-  *   ​glpiuser password : previously defined :) (glpi in our example) 
- 
-On Fedora Core, two elements can bother or, worst, forbid the instalation. Verify your firewall rules and SELinux which usually limits the rights (for your security).