Install and configure glpi 9.3.1

Source: Internet
Author: User
Tags imap ldap php define glpi
Environment requirements

System: centos 7
IP: 192.168.11.207
Disable SELinux and Firewall

[[email protected] ~]#  systemctl stop firewalld[[email protected] ~]#  systemctl disable firewalld[[email protected] ~]#  setenforce 0[[email protected] ~]# cat /etc/sysconfig/selinux                    SELINUX=disabled

Note: Please disable SELinux when detecting SELinux configurations.

Source Environment
[[Email protected] ~] # Yum install epel-release [[email protected] ~] # Wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # PHP 7.1 source [[email protected] ~] # Rpm-uvh remi-release-7.rpm
Download the compiling environment and PHP Environment
[[email protected] ~]# yum -y install --enablerepo=remi --enablerepo=remi-php71 gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-devel php php-fpm php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc php-imap php-ldap php-soap perl mod_perl perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-Apache-DBI perl-SOAP-Lite perl-XML-Entities perl-ModPerl-MM perl-Apache2-SOAP httpd php71-php-mbstring
Database Installation
[[Email protected] ~] # Wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm?#email protected] ~] # Rpm-IVH mysql57-community-release-el7-8.noarch.rpm [[email protected] ~] # Yum install mysql-server-y [[email protected] ~] # Systemctl start mysqld [[email protected] ~] # Systemctl enable mysqld [[email protected] ~] # Grep passw/var/log/mysqld. log # Use the MySQL initial password to change the password
Configure MySQL
Create Database glpi; # create user 'glpi '@' % 'identified by' ********** '; # grant all privileges on glpi. * To 'glpi '@' % 'identified by "*********"; # authorization
Download the glpi installation package
[[Email protected] ~] # Wget Protected] ~] # Tar xvf glpi-9.3.1.tgz-C/var/www/html [[email protected] ~] # Chown-r Apache: Apache/var/www/html [[email protected] ~] # Chkconfig -- level 2345 httpd on # Set httpd to the on (Enabled) status when the running level is 2, 3, 4, and 5 [email protected] ~] # Systemctl start httpd [[email protected] ~] # Systemctl enable httpd
Glpi Configuration

To copy the stored glpi configuration/etc/glpi, you only need to copy the config directory to this location.
Store glpi data in/var/lib/glpi. You only need to copy the files content directory here.
The glpi log file will be stored in/var/log/glpi. There is nothing to copy here, just create a directory.

[[Email protected] ~] # Mkdir/etc/glpi # configuration file path [[email protected] ~] # Mkdir/var/lib/glpi # path of the data storage file. [[Email protected] ~] # Mkdir/var/log/glpi # path of the log file. [[Email protected] ~] # Cd/var/www/html/glpi/[[email protected] glpi] # cp-r config/etc/glpi/[[email protected] glpi] # cp-R files/*/var/lib/glpi/

Change the owner and group of the Created directory. Otherwise, permission issues may occur.

chown -R apache:apache /etc/glpichown -R apache:apache /var/lib/glpi/chown -R apache:apache /var/log/glpi/
PHP configuration
[[Email protected] ~] # Vim/etc/PHP. ini extension =/opt/Remi/php71/root/usr/lib64/PHP/modules/mbstring. So # Add at the end
GLPI-PHP Configuration
[[Email protected] ~] # Vim/var/www/html/glpi/INC/downstream. php # create a file and add the following content <? PHP define ('glpi _ config_dir ','/etc/glpi/'); If (file_exists (glpi_config_dir.'/local_define.php ') {require_once glpi_config_dir.'/local_define.php ';}
[[Email protected] ~] # Vim/etc/glpi/local_define.php # create a file and add the following content <? Phpdefine ('glpi _ var_dir ','/var/lib/glpi '); define ('glpi _ doc_dir', glpi_var_dir); define ('glpi _ cron_dir ', glpi_var_dir. '/_ cron'); define ('glpi _ dump_dir', glpi_var_dir. '/_ dumps'); define ('glpi _ graph_dir ', glpi_var_dir. '/_ graphs'); define ('glpi _ lock_dir ', glpi_var_dir. '/_ lock'); define ('glpi _ picture_dir', glpi_var_dir. '/_ Pictures'); define ('glpi _ plugin_doc_dir', glpi_var_dir. '/_ ins'); define ('glpi _ rss_dir ', glpi_var_dir. '/_ RSS'); define ('glpi _ session_dir ', glpi_var_dir. '/_ session'); define ('glpi _ tmp_dir', glpi_var_dir. '/_ TMP'); define ('glpi _ upload_dir ', glpi_var_dir. '/_ uploads'); define ('glpi _ cache_dir ', glpi_var_dir. '/_ cache'); define ('glpi _ log_dir', '/var/log/glpi ');
[[Email protected] ~] # Vim/etc/httpd/CONF/httpd. conf # Change none to all <directory "/var/www"> AllowOverride all # allow open access: require all granted </directory>
Restart httpd for browser access
[[email protected] ~]# systemctl restart httpd

Access http: // 192.168.11.207/glpi/by IP address, and you will see the installation instructions on the installation UI.

Interface installation demonstration

1. available languages

2. Agree to the license

3. Install

4. Environment Test

5. Connect to the database

6. Select a database (wait for the initial data)

7. Data initial completion


8. Pay attention to the Account Password

9. Enter the interface

Install and configure glpi 9.3.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.