Solved

Issues with mod_perl

Posted on 2012-03-24
4
607 Views
Last Modified: 2012-03-26
Dear,

You are my last hope for solve this problem. I have box Centos 5.7 installed Apache2  when package mod_perl was installed , the Apache not start , show follown message error :



[Fri Mar 23 18:41:59 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 23 18:41:59 2012] [notice] Digest: done
[Fri Mar 23 18:41:59 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Fri Mar 23 18:48:09 2012] [notice] caught SIGTERM, shutting down
[Fri Mar 23 18:48:09 2012] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n
[Fri Mar 23 18:48:09 2012] Can't load Perl module Apache::DBI for server 127.0.0.1:0, exiting...
[Fri Mar 23 18:48:12 2012] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n
[Fri Mar 23 18:48:12 2012] Can't load Perl module Apache::DBI for server 127.0.0.1:0, exiting...
[Fri Mar 23 18:57:06 2012] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n
[Fri Mar 23 18:57:06 2012] Can't load Perl module Apache::DBI for server 127.0.0.1:0, exiting...
[Fri Mar 23 19:03:20 2012] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n
[Fri Mar 23 19:03:20 2012] Can't load Perl module Apache::DBI for server 127.0.0.1:0, exiting...


How can found DBI.PM for apache ?

I did test Perl on APache show me this message

perl -MApache2 -MApache::TestReportPerl   -le 'Apache::TestReportPerl->new->run' > mybugreport
Can't locate Apache2.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .).
BEGIN failed--compilation aborted.

I don´t have a lot of exprience with Perl, but I am triyng ...

Thank very much
0
Comment
Question by:aspenbr
  • 2
4 Comments
 
LVL 7

Expert Comment

by:torakeshb
ID: 37760441
Please check the version of mod_perl you have installed. Apache 2.0 doesn't work with mod_perl 1.0.

Please mention the steps taken to install mod_perl
0
 
LVL 1

Author Comment

by:aspenbr
ID: 37760685
The mod_perl is 2.0.3
0
 
LVL 28

Accepted Solution

by:
FishMonger earned 500 total points
ID: 37765903
The error message is telling you that it can't find the Apache::DBI module.  Did you install that module?  If you did, were there any error messages during the install?
0
 
LVL 1

Author Closing Comment

by:aspenbr
ID: 37766315
Thank very much, I install perl-DBI after mod_perl was installed without problem for start Apache.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question