ridhoyp@gmail.com

How to Install Ocsinventory NG Server

How to Install Ocsinventory NG Server

Ocsinventory Next Generation.

Do you know all devices connected to your IT network?

Do you know which software or hardware component is installed on a computer?

Are you able to deploy softwares or configuration scripts on your computers?

##Ocs inventory

visit : http://www.ocsinventory-ng.org/index.php?page=1-3 for downloading the packets

> [root@LB_TYPE-D /home/ridho/ ] # fetch http://launchpad.net/ocsinventory-server/stable-1.3/1.3.2/+download/OCSNG_UNIX_SERVER-1.3.2.tar.gz
> [root@LB_TYPE-D /home/ridho/ ] # fetch http://launchpad.net/ocsinventory-unix-agent/stable-1.1.2/ocsinventory-unix-agent-1.1.2.1/+download/Ocsinventory-Agent-1.1.2.1.tar.gz

> [root@LB_TYPE-D /home/ridho/ ] # tar zxvf OCSNG_UNIX_SERVER-1.3.2.tar.gz

#The first time what you do after extracting the installaton file is read the readme :)

Show OCSNG setup Readme »

#######################################################
#
# OCS Inventory NG Management Server Setup
#
# Copyleft 2006 Pascal DANEK
# Web: http://www.ocsinventory-ng.org
#
# This code is open source and may be copied and modified as long as the source
# code is always made freely available.
# Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
######################################################

How to setup OCS Inventory NG Management Server ?

======================================================
CAUTION:
If upgrading Communication server from OCS Inventory NG 1.0 RC2 and
previous, please remove any Apache configuration for Communication Server !

Setup now install files in accordance with Filesystem Hierarchy Standard. So,
no file is installed under Apache root document directory (Refer to Apache
configuration files to locate it).
If you’re upgrading from OCS Inventory NG Server 1.01 and previous, YOU MUST
REMOVE (or move) directories ‘ocsreports’ and ‘download’ from Apache root
document directory.
If you choose to move directory, YOU MUST MOVE ‘download’ directory to
Administration Server variable/cache directory (by default
/var/lib/ocsinventory-reports), especialy if you use deployement feature.
======================================================
OCS Inventory NG Management Server needs the following components:
- MySQL version 4.1 or higher
- PERL 5.6 or higher (5.8 or higher recommended)
- Apache version 1.3.33 or higher / Apache version 2.0.X or higher
- Apache Mod_perl version 1.29 or higher
- PHP 4.3.2 or higher, with ZIP support enabled.
- Apache Mod_php version 4.3.2 or higher
- Perl module XML::Simple version 2.12 or higher
- Perl module Compress::Zlib version 1.33 or higher
- Perl module DBI version 1.40 or higher
- Perl module DBD::Mysql version 2.9004 or higher
- Perl module Apache::DBI version 0.93 or higher
- Perl module Net::IP version 1.21 or higher
- Perl module SOAP::Lite version 0.66 or higher, not required, used only with
SOAP web service
- Perl module XML::Entities version 0.02 or higher, not required, used only with
SOAP web service

You must also know the following things (setup will try to found them, but
no garanty):
- Host running MySQL server (generally localhost)
- Port of MySQL server (generally 3306)
- Path to Apache web server binary file (usually named httpd or apache or
apache2)
- Path to Apache main configuration file (usually named httpd.conf or
apache.conf or apache2.conf)
- Path to Apache configuration directory (usually named conf.d)
- User account running Apache web server (usually apache or www-data)
- Group of user account running Apache web server (usually the same as user
account)
- Version of Apache mod_perl
- Where to put Communication server log directory (usually
/var/log/ocsinventory-server)

Run “sh setup.sh” and follow the instructions. It will ask you if you want to
setup Communication Server and/or Administration Server, and will do all
configuration for you.

Using default setup,
- Communication Server is installed as standard PERL module
- Communication Server configuration file ocsinventory-server.conf is installed
under Apache configuration directory, usually /etc/httpd/conf.d or
/etc/apache[2]/conf.d
- Communication Server logs are stored under directory
/var/log/ocsinventory-server
- PHP files are installed under directory
/usr/share/ocsinventory-reports/ocsreports
- Writable/cache directories “download” and “ipd” are created under directory
/var/lib/ocsinventory-reports
- Administration Server configuration file ocsinventory-reports.conf is
installed under Apache configuration directory, usually /etc/httpd/conf.d or
/etc/apache[2]/conf.d. It contains aliases for /ocsreports and /download URL.
Enjoy OCS Inventory NG ;-)

OCS Inventory Team

Run the setup script :

[root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# ./setup.sh

Show Setup 1st running »

+———————————————————-+
| |
| Welcome to OCS Inventory NG Management server setup ! |
| |
+———————————————————-+

CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and
previous, please remove any Apache configuration for Communication Server!

Do you wish to continue ([y]/n)?
Assuming Communication server 1.0 RC2 or previous is not installed
on this computer.

Starting OCS Inventory NG Management server setup from folder /usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2
Storing log in file /usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2/ocs_server_setup.log

+———————————————————-+
| Checking for database server properties… |
+———————————————————-+

Your MySQL client seems to be part of MySQL version 5.1.
Your computer seems to be running MySQL 4.1 or higher, good ;-)

Which host is running database server [localhost] ?
OK, database server is running on host localhost ;-)

On which port is running database server [3306] ?
OK, database server is running on port 3306 ;-)
+———————————————————-+
| Checking for Apache web server daemon… |
+———————————————————-+

Where is Apache daemon binary [/usr/local/sbin/httpd] ?
OK, using Apache daemon /usr/local/sbin/httpd ;-)
+———————————————————-+
| Checking for Apache main configuration file… |
+———————————————————-+

Where is Apache main configuration file [/usr/local/etc/apache22/httpd.conf] ?
OK, using Apache main configuration file /usr/local/etc/apache22/httpd.conf ;-)
+———————————————————-+
| Checking for Apache user account… |
+———————————————————-+

Which user account is running Apache web server [www] ?
OK, Apache is running under user account www ;-)
+———————————————————-+
| Checking for Apache group… |
+———————————————————-+

Which user group is running Apache web server [www] ?
OK, Apache is running under users group www ;-)
+———————————————————-+
| Checking for Apache Include configuration directory… |
+———————————————————-+

Setup found Apache Include configuration directory in
.
Setup will put OCS Inventory NG Apache configuration in this directory.
Where is Apache Include configuration directory [] ?/usr/local/etc/apache22/Includes
OK, Apache Include configuration directory /usr/local/etc/apache22/Includes found ;-)
+———————————————————-+
| Checking for PERL Interpreter… |
+———————————————————-+

Found PERL Intrepreter at </usr/bin/perl> ;-)
Where is PERL Intrepreter binary [/usr/bin/perl] ?
OK, using PERL Intrepreter /usr/bin/perl ;-)

Do you wish to setup Communication server on this computer ([y]/n)?
+———————————————————-+
| Checking for Make utility… |
+———————————————————-+

OK, Make utility found at </usr/bin/make> ;-)

+———————————————————-+
| Checking for Apache mod_perl version… |
+———————————————————-+

Checking for Apache mod_perl version 1.99_22 or higher
Checking for Apache mod_perl version 1.99_21 or previous
Setup is unable to determine your Apache mod_perl version.
Apache must have module mod_perl enabled. As configuration differs from
mod_perl 1.99_21 or previous AND mod_perl 1.99_22 or higher, Setup must
know which release Apache is using.
You can find which release you are using by running the following command
- On RPM enabled OS, rpm -q mod_perl
- On DPKG enabled OS, dpkg -l libapache*-mod-perl*
Enter 1 for mod_perl 1.99_21 or previous.
Enter 2 for mod_perl 1.99_22 and higher.
Which version of Apache mod_perl the computer is running ([1]/2) ?
OK, Apache is using mod_perl version 1.99_21 or previous ;-)

+———————————————————-+
| Checking for Communication server log directory… |
+———————————————————-+

Communication server can create detailled logs. This logs can be enabled
by setting interger value of LOGLEVEL to 1 in Administration console
menu Configuration.
Where to put Communication server log directory [/var/log/ocsinventory-server] ?
OK, Communication server will put logs into directory /var/log/ocsinventory-server ;-)
+———————————————————-+
| Checking for required Perl Modules… |
+———————————————————-+

Checking for DBI PERL module…
Found that PERL module DBI is available.
Checking for Apache::DBI PERL module…
*** ERROR: PERL module Apache::DBI is not installed !
Checking for DBD::mysql PERL module…
Found that PERL module DBD::mysql is available.
Checking for Compress::Zlib PERL module…
Found that PERL module Compress::Zlib is available.
Checking for XML::Simple PERL module…
*** ERROR: PERL module XML::Simple is not installed !
Checking for Net::IP PERL module…
Found that PERL module Net::IP is available.
*** ERROR: There is one or more required PERL modules missing on your computer !
Please, install missing PERL modules first.
Installation aborted !

#I found 3 error for the ocs setup, so i must install all perl module tha required

Fix :

>> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# perl -MCPAN -e ‘install Apache::DBI’

Show Apache::DBI Install Process »

CPAN: Storable loaded ok (v2.21)
CPAN: LWP::UserAgent loaded ok (v5.835)
CPAN: Time::HiRes loaded ok (v1.9721)
Warning: no success downloading ‘/root/.cpan/sources/authors/01mailrc.txt.gz.tmp50716′. Giving up on it. at /usr/local/lib/perl5/5.10.1/CPAN/Index.pm line 225
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read ‘/root/.cpan/sources/authors/01mailrc.txt.gz’
CPAN: Compress::Zlib loaded ok (v2.02)
………………………………………………………………….DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read ‘/root/.cpan/sources/modules/02packages.details.txt.gz’
Database was generated on Fri, 19 Nov 2010 21:30:28 GMT
………………………………………………………………….DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/03modlist.data.gz
Going to read ‘/root/.cpan/sources/modules/03modlist.data.gz’
………………………………………………………………….DONE
Going to write /root/.cpan/Metadata
Running install for module ‘Apache::DBI’
CPAN: Data::Dumper loaded ok (v2.124)
‘YAML’ not installed, falling back to Data::Dumper and Storable to read prefs ‘/root/.cpan/prefs’
Running make for A/AB/ABH/Apache-DBI-1.09.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/A/AB/ABH/Apache-DBI-1.09.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/A/AB/ABH/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/A/AB/ABH/Apache-DBI-1.09.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.68)
Apache-DBI-1.09/
Apache-DBI-1.09/Changes
Apache-DBI-1.09/eg/
Apache-DBI-1.09/lib/
Apache-DBI-1.09/Makefile.PL
Apache-DBI-1.09/MANIFEST
Apache-DBI-1.09/META.yml
Apache-DBI-1.09/README
Apache-DBI-1.09/t/
Apache-DBI-1.09/TODO
Apache-DBI-1.09/traces.txt
Apache-DBI-1.09/t/10mysql.t
Apache-DBI-1.09/lib/Apache/
Apache-DBI-1.09/lib/Apache/AuthDBI.pm
Apache-DBI-1.09/lib/Apache/DBI.pm
Apache-DBI-1.09/eg/startup.pl
CPAN: File::Temp loaded ok (v0.22)

CPAN.pm: Going to build A/AB/ABH/Apache-DBI-1.09.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for Apache::DBI
Could not read ‘/root/.cpan/build/Apache-DBI-1.09-PCiFzK/META.yml’. Falling back to other methods to determine prerequisites
cp lib/Apache/DBI.pm blib/lib/Apache/DBI.pm
cp lib/Apache/AuthDBI.pm blib/lib/Apache/AuthDBI.pm
Manifying blib/man3/Apache::DBI.3
Manifying blib/man3/Apache::AuthDBI.3
ABH/Apache-DBI-1.09.tar.gz
/usr/bin/make — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e” “test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/10mysql.t .. ok
All tests successful.
Files=1, Tests=10, 0 wallclock secs ( 0.05 usr 0.02 sys + 0.10 cusr 0.02 csys = 0.20 CPU)
Result: PASS
ABH/Apache-DBI-1.09.tar.gz
/usr/bin/make test — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
Running make install
Prepending /root/.cpan/build/Apache-DBI-1.09-PCiFzK/blib/arch /root/.cpan/build/Apache-DBI-1.09-PCiFzK/blib/lib to PERL5LIB for ‘install’
Installing /usr/local/lib/perl5/site_perl/5.10.1/Apache/DBI.pm
Installing /usr/local/lib/perl5/site_perl/5.10.1/Apache/AuthDBI.pm
Installing /usr/local/lib/perl5/5.10.1/man/man3/Apache::DBI.3
Installing /usr/local/lib/perl5/5.10.1/man/man3/Apache::AuthDBI.3
FreeBSD: Registering installation in the package database
Appending installation info to /usr/local/lib/perl5/5.10.1/mach/perllocal.pod
ABH/Apache-DBI-1.09.tar.gz
/usr/bin/make install — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state

> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# perl -MCPAN -e ‘install XML::Simple’

Show XML::Simple Install Process »

CPAN: Storable loaded ok (v2.21)
Going to read ‘/root/.cpan/Metadata’
Database was generated on Fri, 19 Nov 2010 21:30:28 GMT
Running install for module ‘XML::Simple’
CPAN: Data::Dumper loaded ok (v2.124)
‘YAML’ not installed, falling back to Data::Dumper and Storable to read prefs ‘/root/.cpan/prefs’
Running make for G/GR/GRANTM/XML-Simple-2.18.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.835)
CPAN: Time::HiRes loaded ok (v1.9721)
Warning: no success downloading ‘/root/.cpan/sources/authors/id/G/GR/GRANTM/XML-Simple-2.18.tar.gz.tmp50827′. Giving up on it. at /usr/local/lib/perl5/5.10.1/CPAN/Distribution.pm line 379
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-2.18.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/G/GR/GRANTM/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.02)
Checksum for /root/.cpan/sources/authors/id/G/GR/GRANTM/XML-Simple-2.18.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.68)
XML-Simple-2.18/
XML-Simple-2.18/t/
XML-Simple-2.18/t/1_XMLin.xml
XML-Simple-2.18/t/lib/
XML-Simple-2.18/t/lib/TagsToUpper.pm
XML-Simple-2.18/t/B_Hooks.t
XML-Simple-2.18/t/6_ObjIntf.t
XML-Simple-2.18/t/1_XMLin.t
XML-Simple-2.18/t/srt.xml
XML-Simple-2.18/t/4_MemShare.t
XML-Simple-2.18/t/3_Storable.t
XML-Simple-2.18/t/7_SaxStuff.t
XML-Simple-2.18/t/A_XMLParser.t
XML-Simple-2.18/t/0_Config.t
XML-Simple-2.18/t/subdir/
XML-Simple-2.18/t/subdir/test2.xml
XML-Simple-2.18/t/2_XMLout.t
XML-Simple-2.18/t/5_MemCopy.t
XML-Simple-2.18/t/8_Namespaces.t
XML-Simple-2.18/t/test1.xml
XML-Simple-2.18/t/desertnet.src
XML-Simple-2.18/t/9_Strict.t
XML-Simple-2.18/Changes
XML-Simple-2.18/MANIFEST
XML-Simple-2.18/lib/
XML-Simple-2.18/lib/XML/
XML-Simple-2.18/lib/XML/Simple/
XML-Simple-2.18/lib/XML/Simple/FAQ.pod
XML-Simple-2.18/lib/XML/Simple.pm
XML-Simple-2.18/META.yml
XML-Simple-2.18/maketest
XML-Simple-2.18/README
XML-Simple-2.18/Makefile.PL
CPAN: File::Temp loaded ok (v0.22)

CPAN.pm: Going to build G/GR/GRANTM/XML-Simple-2.18.tar.gz

Checking installed modules …
XML::Parser is installed, it will be used by the test suite
Checking if your kit is complete…
Looks good
Writing Makefile for XML::Simple
Could not read ‘/root/.cpan/build/XML-Simple-2.18-jbwHCX/META.yml’. Falling back to other methods to determine prerequisites
cp lib/XML/Simple/FAQ.pod blib/lib/XML/Simple/FAQ.pod
cp lib/XML/Simple.pm blib/lib/XML/Simple.pm
Manifying blib/man3/XML::Simple::FAQ.3
Manifying blib/man3/XML::Simple.3
GRANTM/XML-Simple-2.18.tar.gz
/usr/bin/make — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e” “test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
# Package Version
# perl 5.10.1
# XML::Simple 2.18
# Storable 2.21
# XML::Parser 2.36 (default parser)
# XML::SAX Not Installed
t/0_Config.t …… ok
t/1_XMLin.t ……. ok
t/2_XMLout.t …… ok
t/3_Storable.t …. ok
t/4_MemShare.t …. ok
t/5_MemCopy.t ….. ok
t/6_ObjIntf.t ….. ok
t/7_SaxStuff.t …. skipped: no XML::SAX
t/8_Namespaces.t .. skipped: no XML::SAX
t/9_Strict.t …… ok
t/A_XMLParser.t … ok
t/B_Hooks.t ……. ok
All tests successful.
Files=12, Tests=474, 14 wallclock secs ( 0.31 usr 0.08 sys + 2.94 cusr 0.89 csys = 4.22 CPU)
Result: PASS
GRANTM/XML-Simple-2.18.tar.gz
/usr/bin/make test — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state
Running make install
Prepending /root/.cpan/build/XML-Simple-2.18-jbwHCX/blib/arch /root/.cpan/build/XML-Simple-2.18-jbwHCX/blib/lib to PERL5LIB for ‘install’
Installing /usr/local/lib/perl5/site_perl/5.10.1/XML/Simple.pm
Installing /usr/local/lib/perl5/site_perl/5.10.1/XML/Simple/FAQ.pod
Installing /usr/local/lib/perl5/5.10.1/man/man3/XML::Simple::FAQ.3
Installing /usr/local/lib/perl5/5.10.1/man/man3/XML::Simple.3
FreeBSD: Registering installation in the package database
Appending installation info to /usr/local/lib/perl5/5.10.1/mach/perllocal.pod
GRANTM/XML-Simple-2.18.tar.gz
/usr/bin/make install — OK
Warning (usually harmless): ‘YAML’ not installed, will not store persistent state

==========================================

##Now i got :

Show Setup 2nd running »

+———————————————————-+
| Checking for required Perl Modules… |
+———————————————————-+

Checking for DBI PERL module…
Found that PERL module DBI is available.
Checking for Apache::DBI PERL module…
Found that PERL module Apache::DBI is available.
Checking for DBD::mysql PERL module…
Found that PERL module DBD::mysql is available.
Checking for Compress::Zlib PERL module…
Found that PERL module Compress::Zlib is available.
Checking for XML::Simple PERL module…
Found that PERL module XML::Simple is available.
Checking for Net::IP PERL module…
Found that PERL module Net::IP is available.

+———————————————————-+
| Checking for optional Perl Modules… |
+———————————————————-+

Checking for SOAP::Lite PERL module…
*** Warning: PERL module SOAP::Lite is not installed !
This module is only required by OCS Inventory NG SOAP Web Service.
Do you wish to continue ([y]/n] ?

Checking for XML::Entities PERL module…
*** Warning: PERL module XML::Entities is not installed !
This module is only required by OCS Inventory NG SOAP Web Service.
Do you wish to continue ([y]/n] ?

##Just make sure that every module is running well, install everything that required :)
##The last is installing the SOAP:Lite and XML:Entities optional module.. just select the default for every prompt.. (I mean just push enter)

> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# perl -MCPAN -e ‘install SOAP::Lite’
> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# perl -MCPAN -e ‘install XML::Entities’

#Now i got :

Show Setup 3rd running »

+———————————————————-+
| Checking for optional Perl Modules… |
+———————————————————-+

Checking for SOAP::Lite PERL module…
Found that PERL module SOAP::Lite is available.
Checking for XML::Entities PERL module…
Found that PERL module XML::Entities is available.
+———————————————————-+
| OK, looks good ;-) |
| |
| Configuring Communication server Perl modules… |
+———————————————————-+

Writing Makefile for Apache::Ocsinventory

+———————————————————-+
| OK, looks good ;-) |
| |
| Preparing Communication server Perl modules… |
+———————————————————-+
+———————————————————-+
| OK, prepare finshed ;-) |
| |
| Installing Communication server Perl modules… |
+———————————————————-+
+———————————————————-+
| OK, Communication server Perl modules install finished;-)|
| |
| Creating Communication server log directory… |
+———————————————————-+

Creating Communication server log directory /var/log/ocsinventory-server.

Fixing Communication server log directory files permissions.
Configuring logrotate for Communication server.
/usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2
Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NG
Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-server
*** ERROR: Unable to configure log rotation, please look at error in /usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2/ocs_server_setup.log and fix !

Installation aborted !

#It mean my logfile is still not created

> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# mkdir /etc/logrotate.d
> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# touch /etc/logrotate.d/ocsinventory-server

##Now i got :

Show Setup 4th running »

+———————————————————-+
| OK, Communication server Perl modules install finished;-)|
| |
| Creating Communication server log directory… |
+———————————————————-+

Creating Communication server log directory /var/log/ocsinventory-server.

Fixing Communication server log directory files permissions.
Configuring logrotate for Communication server.
/usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2
Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NG
Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-server
+———————————————————-+
| OK, Communication server log directory created ;-) |
| |
| Now configuring Apache web server… |
+———————————————————-+

To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,
Setup can name Communication Server Apache configuration file
‘z-ocsinventory-server.conf’ instead of ‘ocsinventory-server.conf’.
Do you allow Setup renaming Communication Server Apache configuration file
to ‘z-ocsinventory-server.conf’ ([y]/n) ?
OK, using ‘z-ocsinventory-server.conf’ as Communication Server Apache configuration file
Removing old communication server configuration to file /usr/local/etc/apache22/Includes/ocsinventory.conf
Writing communication server configuration to file /usr/local/etc/apache22/Includes/z-ocsinventory-server.conf

+———————————————————-+
| OK, Communication server setup sucessfully finished ;-) |
| |
| Please, review /usr/local/etc/apache22/Includes/z-ocsinventory-server.conf
| to ensure all is good. Then restart Apache daemon. |
+———————————————————-+
Do you wish to setup Administration Server (Web Administration Console)
on this computer ([y]/n)?

Do you wish to setup Administration Server (Web Administration Console)
on this computer ([y]/n)?

+———————————————————-+
| Checking for Administration Server directories… |
+———————————————————-+

CAUTION: Setup now install files in accordance with Filesystem Hierarchy
Standard. So, no file is installed under Apache root document directory
(Refer to Apache configuration files to locate it).
If you’re upgrading from OCS Inventory NG Server 1.01 and previous, YOU
MUST REMOVE (or move) directories ‘ocsreports’ and ‘download’ from Apache
root document directory.
If you choose to move directory, YOU MUST MOVE ‘download’ directory to
Administration Server writable/cache directory (by default
/var/lib/ocsinventory-reports), especialy if you use deployement feature.

Do you wish to continue ([y]/n)?
Assuming directories ‘ocsreports’ and ‘download’ removed from
Apache root document directory.

Where to copy Administration Server static files for PHP Web Console
[/usr/share/ocsinventory-reports] ?
OK, using directory /usr/share/ocsinventory-reports to install static files ;-)
Where to create writable/cache directories for deployement packages and
IPDiscover [/var/lib/ocsinventory-reports] ?
OK, writable/cache directory is /var/lib/ocsinventory-reports ;-)
+———————————————————-+
| Checking for required Perl Modules… |
+———————————————————-+

Checking for DBI PERL module…
Found that PERL module DBI is available.
Checking for DBD::mysql PERL module…
Found that PERL module DBD::mysql is available.
Checking for XML::Simple PERL module…
Found that PERL module XML::Simple is available.
Checking for Net::IP PERL module…
Found that PERL module Net::IP is available.

+———————————————————-+
| Installing files for Administration server… |
+———————————————————-+

Creating PHP directory /usr/share/ocsinventory-reports/ocsreports.
Copying PHP files to /usr/share/ocsinventory-reports/ocsreports.
Fixing permissions on directory /usr/share/ocsinventory-reports/ocsreports.
Creating database configuration file /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php.
Creating IPDiscover directory /var/lib/ocsinventory-reports/ipd.
Fixing permissions on directory /var/lib/ocsinventory-reports/ipd.
Creating packages directory /var/lib/ocsinventory-reports/download.
Fixing permissions on directory /var/lib/ocsinventory-reports/download.
Configuring IPDISCOVER-UTIL Perl script.
Installing IPDISCOVER-UTIL Perl script.
Fixing permissions on IPDISCOVER-UTIL Perl script.
Writing Administration server configuration to file /usr/local/etc/apache22/Includes/ocsinventory-reports.conf

+———————————————————-+
| OK, Administration server installation finished ;-) |
| |
| Please, review /usr/local/etc/apache22/Includes/ocsinventory-reports.conf
| to ensure all is good and restart Apache daemon. |
| |
| Then, point your browser to http://server//ocsreports
| to configure database server and create/update schema. |
+———————————————————-+
Setup has created a log file /usr/home/ridho/OCSNG_UNIX_SERVER-1.3.2/ocs_server_setup.log. Please, save this file.
If you encounter error while running OCS Inventory NG Management server,
we can ask you to show us his content !

DON’T FORGET TO RESTART APACHE DAEMON !

Enjoy OCS Inventory NG ;-)

#Link the ocsreports web directory to your document root

> [root@LB_TYPE-D /home/ridho/OCSNG_UNIX_SERVER-1.3.2]# ln -s /usr/share/ocsinventory-reports/ocsreports /usr/www/

#Open your browser and Pointing to your ocs web, i use http://172.16.1.153/ocsreports

mysqlerror_640x67.jpg

This is because i forget to configure the database and the user.

#Create Database and Userdatabase :

Show Create Database and user »

[root@LB_TYPE-D /usr/share/ocsinventory-reports/ocsreports]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 2700
Server version: 5.1.51-log FreeBSD port: mysql-server-5.1.51

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.

mysql> create database ocsweb;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on ocsweb.* to ocs@localhost identified by ‘pass’;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

#Setting config database
> [root@LB_TYPE-D /usr/share/ocsinventory-reports/ocsreports]# ee dbconfig.inc.php

Show Database config »

<?php
$_SESSION["SERVEUR_SQL"]=”localhost”;
$_SESSION["COMPTE_BASE"]=”ocs”;
$_SESSION["PSWD_BASE"]=”pass”;
?>

login_640x197.jpg

Login with your mysql Username and password that have been created before.

databasesuccess_640x340.jpg

All checking is done, just click the submit query.

doneinstall_640x149.jpg

Click the OCS-NG GUI link.

ocslogin_429x194.jpg

Login with
user : Admin
Password : Admin

admin_640x178.jpg

This is your admin panel of OCS NG Inventory server.

#Finished

Incoming search terms:

4 Comments

  1. thanks gan atas informasinya….
    ada gk link ttg OCS lengkap, lgi mmpelajari ttg inventory dg OCS NG neh..

    Reply
  2. Hi there, just wanted to mention, I loved this
    article. It was practical. Keep on posting!
    rasta shirt recently posted..rasta shirt

    Reply
  3. Excellent goods from you, man. I’ve understand your stuff previous to and you’re just too
    wonderful. I really like what you’ve acquired here, really like what you’re saying and the way in which you say it.
    You make it enjoyable and you still care for to keep it wise.
    I can’t wait to read far more from you. This is actually a tremendous web site.
    psn codes generator 2013 recently posted..psn codes generator 2013

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge