Solved

Issues with mod_perl

Posted on 2012-03-24
4
574 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 6

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now