Install GLPI0.85 in CentOS based on OCS2.1.2

Source: Internet
Author: User
Tags glpi
The CentOS system installs GLPI0.85 based on OCS2.1.2 and sends it to compilation and installation beginners: We do not recommend using compilation and installation 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/09

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 OCS http://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

Related Article

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.