Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Apache can't work after OCSInventory NG installed

Hi, Broths

I have installed the OCSInventory NG installed in CentOS , but it is failure when i restart apache.

System Infor:

CentOS7+apache2.4.6+PHP 5.4.16+MariaDB 5.5.41+OCSInventoryNG2.1.2

Other Package:

mod_perl-2.0.8-10.20140624svn1602105.el7.x86_64

perl-XML-Simple-2.20-5.el7.noarch

perl-IO-Compress-2.061-2.el7.noarch

perl-DBI-1.627-4.el7.x86_64

perl-DBD-MySQL-4.023-5.el7.x86_64

perl-Apache-DBI-1.12-1.el7.noarch

perl-Net-IP-1.26-4.el7.noarch

perl-SOAP-Lite-1.10-1.el7.noarch

php-common-5.4.16-36.el7_1.x86_64

php-gd-5.4.16-36.el7_1.x86_64

 

And I have installed the OCSInventory NG installed in CentOS following the article :http://wiki.ocsinventory-ng.org/index.php/Documentation:Server

 

But after installed, apache can't be restarted.

[Tue Aug 18 17:10:43.717931 2015] [perl:error] [pid 14622] Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 13) line 2.\n

[Tue Aug 18 17:10:43.718718 2015] [perl:error] [pid 14622] Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server localhost:80, exiting...

 

Anyone help me?
in OCS Inventory NG server for Unix by (160 points)

2 Answers

0 votes
Hi,

Be sure that plugins directories defined in z-ocsinventory-server.conf file are created!

Regards

Frank
by (88.5k points)
# ===== PLUGINS =====

  PerlSetEnv OCS_PLUGINS_PERL_DIR "/etc/ocsinventory-server/perl"
  PerlSetEnv OCS_PLUGINS_CONF_DIR "/etc/ocsinventory-server/plugins"

 

I have checked the Path "/etc/ocsinventory-server/", there are two directories in it.

But nothing in the directories, please see the checking at below:

[root@localhost Plugins]# cd /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/
[root@localhost Plugins]# ls
[root@localhost Plugins]# cd /etc/ocsinventory-server/plugins/
[root@localhost plugins]# ls
[root@localhost plugins]#
[root@localhost plugins]#

 

I only found the error log in ocs_server_setup.log , please view it at below:

....

Checking for Apache2::SOAP PERL module
Unsupported version of mod_perl at /usr/share/perl5/vendor_perl/SOAP/Transport/HTTP2.pm line 85.
Compilation failed in require.
BEGIN failed--compilation aborted.
User choose to continue setup without PERL module SOAP::Apache2
Checking for XML::Entities PERL module
PERL module XML::Entities is available
Configuring Communication server (perl Makefile.PL)
Preparing Communication server Perl modules (make)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Cache.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Snmp.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Snmp/Inventory.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Modperl2.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Capacities.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Map.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Extensions.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Export.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Communication.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Useragent.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Snmp/Data.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Updates.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Database.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Ipdiscover.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/SOAP.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/History.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Config.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Registry.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Update/Hardware.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Update.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Ipdiscover.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Filter.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Filter.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Data.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Example.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Inventory.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/System.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Notify.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Update.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Plugins.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Datafilter.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Groups.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Download/Inventory.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Communication/Session.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Snmp.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Capacities/Download.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Constants.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/System/Config.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Modperl1.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Server/Duplicate.pm (unchanged)
Skip blib/lib/Apache/Ocsinventory/Interface/Internals.pm (unchanged)
Installing Communication server Perl modules (make install)
Installing /root/perl5/lib/perl5/Apache/Ocsinventory.pm
Installing /root/perl5/lib/perl5/Apache/Ocsinventory/Map.pm
Installing /root/perl5/lib/perl5/Apache/Ocsinventory/Server/Capacities/Snmp.pm
Installing /root/perl5/lib/perl5/Apache/Ocsinventory/Interface/Internals.pm
Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
Creating Communication server log directory /var/log/ocsinventory-server
Fixing Communication server log directory permissions
Configuring logrotate (ed logrotate.ocsinventory-NG)

....

 

Attention: I have comment the  lines in z-ocsinventory-server.conf, because if i don't do it , the error of apache prompt " localhost.localdomain httpd[18634]: Unknown Authz provider: SOAP_USER".

....

        # Use htpasswd to create/update soap-user (or another granted user)
#       AuthUserFile "APACHE_AUTH_USER_FILE"
#       require "SOAP_USER"
  </location>
</IfModule>
0 votes

I solved this issue like this:

[user]$ tar -xvf ../OCSNG_UNIX_SERVER-2.3RC.tar

[user]$ tar -xvf cd Apache

[user]$ perl Makefile

[user]$ make

[user]$ sudo su

[root]# make install

by (4.6k points)
 
Powered by Question2Answer
...