How To Install OCS Inventory NG Server 2 On CentOS 5.5
How To Install OCS Inventory NG Server 2 On CentOS 5.5This article explains how to install OCS Inventory NG Server 2 on Linux Server. Prepared by Rafael Marangoni, from BRLink Consultoria Linux Team.
IntroductionOCS Inventory is a great software to make inventories. The NG Server is formed by: communication server, deployment server, and administration console. Click here to know how it works. The computers that will be inventoried must run an agent (installed on each computer), to connect to the OCS NG Server. We are using the CentOS 5.5 (64bits) distribution, but it will probably work on Fedora (and Red Hat, for sure).
1 Some PrerequisitesInstalling MySQL ServerWe need to install it (if it's not already installed): yum install mysql-server php-mysql php-pecl-zip php-gd Starting MySQL: /etc/init.d/mysqld start Setting a root password on mysql: /usr/bin/mysqladmin -u root password 'secret'
Starting Apache:We need to start Apache (OCS uses it): /etc/init.d/httpd start
Installing PackagesNext, we need to install EPEL repository: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm Afterwards, let's install the packages: yum install -y perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-XML-Entities perl-Apache-DBI perl-Apache2-SOAP perl-SOAP-Lite mod_perl
Configure PHPEdit the /etc/php.ini file, and change the following lines: vi /etc/php.ini post_max_size = 200M upload_max_filesize = 200M Restart Apache: /etc/init.d/httpd restart
2 Installing OCS Inventory NG Server 2First, we need to download the tarball from OCS Inventory website. Click here. mkdir /download Initiate the installer:
tar -zxvf OCSNG_UNIX_SERVER-2.0rc1.tar.gz The install script is very simple, it's a wizard. Almost all the options, we'll select the default option. If you leave the question in blank, it will select the default option. Do you wish to continue ([y]/n)?y
3 Configuring OCS Inventory NG Server 2Creating a MySQL database:First, we need to open mysql shell: mysql -u root -p"secret" Then create the database named ocsweb, and grant permissions to user ocs, with password ocs: CREATE DATABASE ocsweb; If you want, you can change these parameters (database name, username or password). This is the default of ocs. Now, point your browser to ocsreports interface, to manage the server with the administration tool: http://server-ip/ocsreports/ The default user is "admin" and password is "admin". Finally, we must delete the install script: rm -f /usr/share/ocsinventory-reports/ocsreports/install.php Now, all you have to do is configure the server with the machine options. Install the agents on the network computers pointing the
server ip on them.
ReferencesOCS Inventory: http://wiki.ocsinventory-ng.org/index.php/Documentation:Main
|



Recent comments
19 hours 24 min ago
1 day 29 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 20 hours ago
1 day 20 hours ago
2 days 1 hour ago
2 days 8 hours ago
2 days 9 hours ago
2 days 10 hours ago