1819777 Members
3165 Online
109607 Solutions
New Discussion юеВ

Apache problem

 
SOLVED
Go to solution
Youlette Etienne_2
Regular Advisor

Apache problem

Hello everyone,

I am trying to restart apache after a ssytem reboot, and I am getting the below error message. I uninstalled perl 5.6.1 and installed perl 5.8.0, however, the same was done on a development server where Apache is starting normally. Is there a way to resolve this without reinstalling apache?

/opt/hpapache2/bin =>./apachectl start
[Tue Oct 28 15:25:57 2003] [error] Can't locate strict.pm in @INC (@INC contains
: /opt/hpapache2/lib/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/hpapa
che2/lib/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/hpapache2/lib/perl/lib/5.6.
1 /opt/hpapache2/lib/perl/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/p
erl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/li
b/site_perl/5.6.1 /opt/perl/lib/site_perl .) at /opt/hpapache2/lib/perl/lib/site
_perl/5.6.1/PA-RISC1.1-thread-multi/ModPerl/Registry.pm line 3.
BEGIN failed--compilation aborted at /opt/hpapache2/lib/perl/lib/site_perl/5.6.1
/PA-RISC1.1-thread-multi/ModPerl/Registry.pm line 3.
Compilation failed in require at (eval 2) line 3.

[Tue Oct 28 15:25:57 2003] [error] Can't load Perl module ModPerl::Registry for
server n4000c.avmed.com:80, exiting...
If at first you don't succeed, change the rules!
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Apache problem

Check the PATH and SHLIB_PATH of the user that starts apache.

Clearly something is trying to use the old PERL.

If you need to remove and reinstall apache, you should preserver your httpd.conf and other configuration files.

I think you will see environmental differences between the server that works and the one that does not, apache user.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor
Solution

Re: Apache problem

Hi Youlette,

If you look at that apachectl file it's just a script. And in that script on line 29 you'll find:

export PERL5LIB=/opt/apache/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi:$PERL5LIB

SO where did you install that 5.8.0 perl?
Are you setting a PERL5LIB from that new perl?
Do you still have that Apache supplied perl & in the same location?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!