Install OCSNG-server 2.1.2 on CentOS 6.6
1. Install OCSNG-server 2.1.2 on CentOS 6.6
2. Install the OCS_Agent for linux client on Redhat, CentOS, Debian, and Ubuntu. [use the one-key automated script I wrote: http://990487026.blog.51cto.com/10133282/1686589]
3. The OCS_Agent for windows GUI is too simple. You can enter the https address of the server during installation.
4. OCS_Agent for MAC. The GUI is too simple. You can enter the http address of the server during installation. If you use https, an error is returned.
5. After the OCSNG_Server service platform is installed, find out the functions in it.
6. Import OCSNG-Server and GLPI data
Platforms: CentOS-6.6-x86_64 Desktop, Development Kit, new installation
I have packed the required files:
-Rw-r --. 1 root 4.4 M August 20 16:06 OCSNG-Server-packages.tar.gz
Link: http://pan.baidu.com/s/1pjkk4w7password :a0re
Three documents are required: CA root certificate and web service visa and private key.
Ready ~ Go!
========================================================== ====================================
Download the 163 yum Source:
Wget http://mirrors.163.com/.help/CentOS-Base-163.repo
Components required for yum installation: 169 packages in total
Yum install-y httpd mysql-server php-mysql gcc-c ++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel tiff lib -devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-devel php-gd php-pecl-zipphp-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc mod_perl php-mbstring perl mod_perl perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net- IP
Service mysqld start
Service httpd start
Modify the default mysql password
Mysqladmin-uroot password "your_password"
Configure HTTP and mysql to start with the system:
Chkconfig httpd on
Chkconfig mysqld on
Install digest-sha1-2.02.tar.gz:
Tar -zxfDigest-SHA1-2.02.tar.gz
Cd Digest-SHA1-2.02
Perl Makefile. PL
Echo $?
Make
Echo $?
Make install
Echo $?
Installation module: Apache-DBI
Tar-zxf Apache-DBI-1.06.tar.gz
Cd Apache-DBI-1.06
Perl Makefile. PL
Echo $?
Make
Echo $?
Make install
Echo $?
Configure the Perl environment:
Manual installation module: SOAP-Lite:
Tar xf SOAP-Lite-0.69.tar.gz
Cd SOAP-Lite-0.69
Perl Makefile. PL press ENTER
Echo $?
Make
Echo $?
Make install
Echo $?
Installation module: XML-Entities:
Tar-zxf XML-Entities-1.0000.tar.gz
Cd XML-Entities
Perl Makefile. PL
Echo $?
Make
Echo $?
Make install
Install OCSNG
Tar xf OCSNG_UNIX_SERVER-2.1.2.tar.gz
Cd OCSNG_UNIX_SERVER-2.1.2.tar.gz
./Setup. sh
Enter the script one by one. If any error occurs, check whether all Perl modules are correctly installed.
[Watch out !] Note the following options:
Where to copy Administration Server static filesfor PHP Web Console
[/Usr/share/ocsinventory-reports]? /Var/www/html/
Manually input and select the path where the web file is stored,/var/www/html/
The following message indicates that the installation is successful:
DON't 'tforget to restart apache daemon!
Enjoy OCSInventory NG ;-)
Service iptables stop
========================================================== ==============================
Access http: // serverip/ocsreports/install. php In the browser for installation and configuration.
Enter the mysql username and root Password your_password. If mysql is a local machine, the address is localhost.
Use the default admin/admin
Tip]
Please enter the label of the windows client tag input box:
(Leave empty if you don't want a popup to be shown on each agent launch)
Click Submit for query on the right of the input box]
Click here to enter OCS-NG GUI
========================================================== ======================================
[OSC installation completed]
1, the use of https encrypted transmission, refer to: Set up a CA server to achieve https communication, web servers use the CA self-signed certificate and https communication http://990487026.blog.51cto.com/10133282/1686127
2. Solve the three warnings!
Security alert!
Your install. php exists in your installation directory.
The default SQL login/password is activate on your database: ocsweb
The solution is as follows:
Http://wiki.ocsinventory-ng.org/index.php/Documentation:Secure
* *********** If the following error occurs: 500 Internal server error ********************************
Run the client (linux environment)
# Ocsinventory-agent -- server localhost
Log report
"Cannot establish communication: 500 Internal server error ".
Run the command according to the suggestions of the Forum.
Tail/var/log/httpd/error_log
See similar information
[Wed Aug 27 10:09:23 2008] [error] [client x. x. x. x] Can't call method "do" on an undefined value at/usr/lib/perl/5.8.8/Apache/Ocsinventory/Server/System. pm line 177. \ n
View the following content in row 177 of/usr/lib/perl/5.8.8/Apache/Ocsinventory/Server/System. pm as prompted:
# Connection...
My $ dbh = DBI-> connect ("DBI: mysql: database = $ database; host = $ host; port = $ port", $ user, $ password, \ % params );
$ Dbh-> do ("set names 'utf8'") if ($ dbh & $ ENV {'cs _ OPT_UNICODE_SUPPORT '});
$ Dbh-> do ("SET SQL _mode = 'no _ AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION '");
Return $ dbh;
Modify the username and password of mysql
Vim/etc/httpd/conf. d/z-ocsinventory-server.conf
Line 28:
# User allowed to connect to database
PerlSetEnv OCS_DB_USER ocs
# Password for user
PerlSetVar OCS_DB_PWD ocs
Replace the two ocs with your mysql user name and password respectively. Restart httpd and run it again:
# Ocsinventory-agent
* *********** Error: 500 Internal server error solution ********************************