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.

Can't locate Apache/DBI.pm in @INC

Hello to all.

Need your assistance to resolve the issue.

CentOS Linux release 7.4.1708 (Core)

PHP: PHP 5.6.33 (cli)

Apache: Apache/2.4.6 (CentOS)

MySQL: 5.5.56-MariaDB MariaDB Server

Perl: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 33 registered patches, see perl -V for more detail)


The installation completed successfully and no errors observed in the installation log.

After installation the httpd server fails to start the following errors are observed in the error_log:


[Wed Feb 28 00:10:26.507380 2018] [perl:error] [pid 6092] Can't locate Apache/DBI.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 2) line 2.\n
[Wed Feb 28 00:10:26.507478 2018] [perl:error] [pid 6092] Can't load Perl module Apache::DBI for server 127.0.0.1:0, exiting...
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Wed Feb 28 00:11:52.601712 2018] [suexec:notice] [pid 6101] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Wed Feb 28 00:11:52.905963 2018] [auth_digest:notice] [pid 6102] AH01757: generating secret for digest authentication ...
[Wed Feb 28 00:11:52.906867 2018] [lbmethod_heartbeat:notice] [pid 6102] AH02282: No slotmem from mod_heartmonitor
[Wed Feb 28 00:11:53.498363 2018] [mpm_prefork:notice] [pid 6102] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.33 mod_perl/2.0.10 Perl/v5.16.3 configured -- resuming normal operations
[Wed Feb 28 00:11:53.498411 2018] [core:notice] [pid 6102] AH00094: Command line: 'httpd'


A modules in errors are installed.

cpan[1]> install Apache::DBI
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 27 Feb 2018 08:54:35 GMT
Apache::DBI is up to date (1.12).

cpan[2]> install SOAP::Transport::HTTP
SOAP::Transport::HTTP is up to date (1.26).


Before installing OCS apache was work correctly.

Thanks for help.

UPD: Found some errors in installation log.

unsupported version of mod_perl at /root/perl5/lib/perl5/SOAP/Transport/HTTP2.pm line 85.
Compilation failed in require.
BEGIN failed--compilation aborted.

Is this critical? And what version of mod_perl or SOAP::Transport::HTTP2 required? How to change version?

cpan[1]> install SOAP:Lite
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 27 Feb 2018 08:54:35 GMT
SOAP::Lite is up to date (1.26).

cpan[2]> install SOAP::Transport::HTTP2
SOAP::Transport::HTTP2 is up to date (0.73).

mod_perl.x86_64  2.0.10-2.el7  @epel

in OCS Inventory NG server for Unix by (120 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...