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.6 available

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

Apache don't start "Can't locate Apache.pm"

Hi,

I have installed an Ocsinventory in a CentOs 7.2. Beyond yum perl package doesn't exist in this release, Apache don't start after include "z-ocsinventory-server.conf" and "ocsinventory-reports.conf" in my httpd.conf. The file error.log of httpd as two lines : 

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 . /opt/applis/httpd) at (eval 13) line 2.\n

Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server srv-ocs.clinique.local:0, exiting...

Folder "/etc/ocsinventory-server" exist with "plugins" and "perl" folders, but without any files.

In my Ocs_server_setup.log, only two lines are on error :

Checking for Apache2::SOAP PERL module
Unsupported version of mod_perl at /root/perl5/lib/perl5/SOAP/Transport/HTTP2.pm line 85.
Compilation failed in require.
BEGIN failed--compilation aborted.
User choose to continue setup without PERL module SOAP::Apache2

Somebody can help me? 

I have CentOs 7.2, Php 5.6.3, httpd 2.4.20, mod_perl 2.0.9

Thanks

asked in OCS Inventory NG server for Unix by (300 points)

1 Answer

+1 vote
Hi,

I resolved this problem do follow:

copy file y folder of the folder instalation

OCSNG_UNIX_SERVER-2.2.1/Apache/Ocsinventory

OCSNG_UNIX_SERVER-2.2.1/Apache/Ocsinventory.pm

copy to:

/usr/local/share/perl5/Apache/

Restart service http .

Thank.

Marco
answered by (180 points)
 
Powered by Question2Answer
...