CentOS installation Ocs+glpi

Source: Internet
Author: User
Tags glpi


Download the 163 yum Source:

wget Http://mirrors.163.com/.help/CentOS-Base-163.repo    

Yum installs the required components:

Yum install-y httpd mysql mysql-server php-mysql gcc gcc-c++ glibc-devel glibc-headersautoconf automake bzip2-devel zlib-d Evel Ncurses-devel libjpeg-devellibpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm Libx11libxml2-devel gettext-devel pcre-devel php php-devel php-gd php-pecl-zipphp-devel php-pear php-imap php-ldap Php-odbc php-xml php-xmlrpc mod_perlphp-mbstring perl mod_perl perl-xml-simple perl-compress-zlib Perl-dbiperl-dbd-mysql Perl-net-ip

Service mysqld Start

Service httpd Start

Mysqladmin–uroot Password 123456


Configure HTTP, MySQL with system boot:

Chkconfig httpd on

Chkconfig mysqld on

Install digest-sha1-2.02.tar.gz:

Tar-zxfdigest-sha1-2.02.tar.gz

cddigest-sha1-2.02

perlmakefile.pl

Make

Make install

Installation module: Apache-dbi

TAR-ZXF apache-dbi-1.06.tar.gz

CD apache-dbi-1.06

Perl makefile.pl

Make

Makeinstall

To configure the Perl environment:

To install the module manually: Soap-lite:

Tar-zxfsoap-lite-0.69.tar.gz

cdsoap-lite-0.69

perlmakefile.pl all the way press ENTER

Make

Makeinstall


Installation module: Xml-entities:

TAR-ZXF xml-entities-1.0000.tar.gz

CD xml-entities

perlmakefile.pl

Make

Makeinstall


Installing OCSNG

Tar-zxfocsng_unix_server-1.3.2-linvinus-with-utf8_patch.tar.gz

Cdocsinventory-server-1.3.2/

./setup.sh

script all the way to the return, if there are errors, please check all Perl module is installed correctly

There is one option to note :

Where to copy administration Server static filesfor PHP Web Console

[/usr/share/ocsinventory-reports]? /var/www/html/

the red font part needs to be entered manually, select Web the path where the file is stored, Web The default storage path is :/var/www/html/

The following information indicates that the installation was successful:

DON ' tforget to RESTART APACHE DAEMON!

Enjoy ocsinventory NG;-)




Browser Access http./serverip/ocsreports/install.php for installation configuration

Enter the MySQL user name root password 123456, if MySQL is native, the address is localhost

with the default Admin/admin Enter

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/E0/wKiom1WKXr3BJmYqAAHLvLU8kho633.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1wkxr3bjmyqaahlvlu8kho633.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/DD/wKioL1WKYHfQl2aSAAN_b0YxzKM989.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1wkyhfql2asaan_b0yxzkm989.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/E0/wKiom1WKXr3iihg5AAFQz4mlxuY422.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1wkxr3iihg5aafqz4mlxuy422.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/E1/wKiom1WKX_DSm-F5AAF0892K_Fk495.jpg "title=" 4.png " alt= "Wkiom1wkx_dsm-f5aaf0892k_fk495.jpg"/>



Modules required to install the GLPI

Ocs+glpi+mysql are installed on the same server here.

To install JSON:

TAR-ZXF json-1.2.1.tgz

CD json-1.2.1

Vim json_parser.c//glpi requires a JSON module, which needs to be increased before compiling

#define ZVAL_DELREF z_delref_p //rpm installation PHP5.3 does not support this symbol, you need to manually add the line, the preceding # do not remove

Phpize// If there is no phpize command, then use yum to install the Php-devel package

./configure

Make

Make install

Find/-name*json.so// See if the JSON module is successfully installed

/usr/lib64/php/modules/json.so

Vim/etc/php.ini// Add the following line

Extension=json.so

Vim/etc/php.d/json.ini// Create json.ini file, add the following two lines

; Enable SNMP Extension Module

Extension=json.so

use the php-m command to see if PHP has loaded the JSON module

Install Glpi:

Unzip 51CTO Download-glpi-0.84.5.tar.zip

TAR-ZXF glpi-0.84.5.tar.gz

MV glpi/var/www/html///Put the extracted Glpi directory into the Web path

Chmod-r 755/var/www/html/glpi/config/// grant 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///Change the owner and owner of the GLPI directory


Create DATABASE: GLPI

MYSQL-UROOT-P123456-E "CREATE database Glpi;"

Service mysqld Restart


Restart HTTPD Service

Service httpd Restart


http://172.16.24.60/glpi/install/install.php

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/DD/wKioL1WKY-ORp57zAADghlecS5w565.jpg "style=" float: none; "title=" 1.png "alt=" Wkiol1wky-orp57zaadghlecs5w565.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/E1/wKiom1WKYiqwVM9xAAGqCW28nio498.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1wkyiqwvm9xaagqcw28nio498.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/DD/wKioL1WKY-SR6bI6AAEg2Ky_PTk115.jpg "style=" float: none; "title=" 3.png "alt=" Wkiol1wky-sr6bi6aaeg2ky_ptk115.jpg "/>


To the Files directory permissions, here or an error, close SELinux

Vim/etc/sysconfig/selinux

selinux=disable// change to disable, or/usr/sbin/setenforce 0 to close SELINUX immediately

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/E2/wKiom1WKdCaSt43ZAAF7E3pspcc095.jpg "title=" 1.png " alt= "Wkiom1wkdcast43zaaf7e3pspcc095.jpg"/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/DD/wKioL1WKZxLjyGLRAAIRuj2d140750.jpg "style=" float: none; "title=" 1.png "alt=" Wkiol1wkzxljyglraairuj2d140750.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/E1/wKiom1WKZVuRvYyfAAEvc1R_Gg0915.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1wkzvurvyyfaaevc1r_gg0915.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/E1/wKiom1WKZVywM160AADVjpIkTho789.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1wkzvywm160aadvjpiktho789.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/DD/wKioL1WKZxfQlfBfAAFM_CdcxBo115.jpg "style=" float: none; "title=" 4.png "alt=" Wkiol1wkzxfqlfbfaafm_cdcxbo115.jpg "/>


The account and password are initially GLPI

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/DD/wKioL1WKaAHQPcvuAADVTOWGaA4625.jpg "title=" 1.png " alt= "Wkiol1wkaahqpcvuaadvtowgaa4625.jpg"/>


Add ocsinventory NG Plugins

new version of GLPI not supported by default ocsinventory NG , to support ocsinventory NG , you need to install plug-ins

wget https://forge.indepnet.net/attachments/download/1564/glpi-ocsinventoryng-1.0.2.tar.gz

TAR-ZXVF glpi-ocsinventoryng-1.0.2.tar.gz

MV Ocsinventoryng/var/www/html/glpi/plugins

access via browser Glpi , click Settings, select Plugins, you can see the corresponding plugins

Click Install, and click Enable

Set Selection plugin Enable plugin

650) this.width=650; "style=" width:720px;height:242px; "src=" http://s3.51cto.com/wyfs02/M02/6E/DE/ Wkiol1wkaabap6myaahiongwdls456.jpg "title=" 2.png "alt=" wkiol1wkaabap6myaahiongwdls456.jpg "vspace=" 0 "width=" 720 " Border= "0" height= "242" hspace= "0"/>

Configure GLPI link to OCS, (GLPI for front end management and operations, OCS similar to GLPI backend database)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/DD/wKioL1WKaWiCoPHWAAFrO3lJauo983.jpg "title=" 3.png " alt= "Wkiol1wkawicophwaafro3ljauo983.jpg"/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/DE/wKioL1WKapqxp6-pAAE1M3XWeXA530.jpg "title=" 1.png " alt= "Wkiol1wkapqxp6-paae1m3xwexa530.jpg"/>




Install the Windows client

Client Run OcsAgentSetup.exe to install, the server address is filled in OCSNG Server IP address, port default is . After installation , the data for the client machine can be seen in the OCS.

automatically run once when the default installation is complete Ocsagent, or, you can manually run the client configuration file in the Server.ini file in the installation directory , and you can manually modify the server address.


1. Turn off iptables, otherwise the monitored PC cannot connect, or write allow policy

Service Iptables Stop

/usr/sbin/setenforce 0 turn SELINUX off immediately or change etc/sysconfig/selinux to be restarted


2.Starting httpd: [...] [Warn] _default_ VirtualHost overlap on port80, the first have precedence

Probably means the port is occupied, in the/etc/httpd/conf/httpd.conf file found this line: #NameVirtualHost *:80, the front "#" removed, restart Apache, problem resolution.


3.using Localhost.localdomain for ServerName cannot confirm that the server fully confirms the domain name Localhost.localdoman

Vim/etc/httpd/conf/httpd.conf

ServerName localhost:80






CentOS installation Ocs+glpi

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.