Install GLPI 0.85 in CentOS Based on OCS2.1.2
Install GLPI 0.85 in CentOS Based on OCS2.1.2
For new users who want to compile and install the SDK: it is not recommended to use the SDK unless you really know what you are doing. If compilation and installation are not good, It will expose your head to blood, time consumption, and the task has not been completed. The boss still looks down on you and finally installs yum with one click.
1. First install OCShttp: // www.centoscn.com/image-text/install/2015/0907/6133.html
Install json:
Tar-zxf json-1.2.1.tgz
Cd json-1.2.1
Vim JSON_parser.c // glpi requires the json module. Add the following lines before Compilation:
# Define ZVAL_DELREF Z_DELREF_P // This symbol is not supported when PHP5.3 is installed in rpm. You need to manually add this line. Do not remove the # sign above.
Phpize // if there is no phpize command, use yum to install the php-devel package
./Configure
Make
Make install
Find/-name * json. so // check whether the json module is successfully installed
/Usr/lib64/php/modules/json. so
Vim/etc/php. ini // Add the following lines
Extension = json. so
Vim/etc/php. d/json. ini // create the json. ini file and add the following two lines:
; Enable snmp extension module
Extension = json. so
Run the php-m command to check whether the php has loaded the json module.
Install GLPI:
Tar-zxf glpi-0.84.5.tar.gz
Mv glpi/var/www/html // put the unzipped glpi directory to the webpage path
Chmod-R 755/var/www/html/glpi/config // grant the config and files directory permissions
Chmod-R 755/var/www/html/glpi/files/
Echo "extension = mbstring. so">/etc/php. ini
Chown-R apache: apache/var/www/html/glpi // modify the owner and owner of the glpi directory
Create a database: GLPI
Mysql-uroot-p123456-e "create database glpi ;"
Service mysqld restart
Restart the httpd service
Service httpd restart
Service iptables stop
Setenforce 0
Http: // 172.16.24.60/glpi/install. php
[Actoion] invalid Solution
Vim glpi/inc/Ajxc. class. php
In row 95th
Remove ($ param ['extraparam']);
Restart apache