LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache installation problem with Modperl (https://www.linuxquestions.org/questions/linux-software-2/apache-installation-problem-with-modperl-185255/)

groover 05-24-2004 11:37 AM

Apache installation problem with Modperl
 
Hello all, I'm having a problem with Modperl and am hoping someone can help. I'm running Apache 2.0.48 on a Slackware 9.1 box, and it is serving up HTML and PHP pages correctly. However, i'm trying to get Perl working through the server as well, and have not had any luck.

When running Perl scripts from a command line, the scripts run fine and they are outputing the correct text. When I try to run the scripts through the web server, I get a '500 internal server error'. Looking at the server logs, the follow error is logged everytime I run a perl script:

[Mon May 24 16:05:43 2004] [error] failed to resolve handler `Modperl::Registry'
[Mon May 24 16:05:43 2004] [error] [client 137.201.169.23] Can't locate Modperl/Registry.pm in @INC (@INC contains: /wwwroot/htdocs/WebGUI/lib /usr/local/lib/perl5/5.8.3/i686-linux /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/i686-linux /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl . /usr/local/apache2/ /usr/local/apache2/lib/perl) at (eval 258) line 3.

I checked (find / -iname Registry.pm) to make sure Registry.pm is there, it's found it at /usr/local/lib/perl5/site_perl/5.8.3/i686-linux/ModPerl/Registry.pm which is within the directories listed above.

I have the line 'LoadModule perl_module modules/mod_perl.so' in my httpd.conf file, so that is not a problem. And I have .pl files setup as CGI scripts.

Does anyone have any recommendations or ideas about this problem I'm experiencing? Thanks!

Z

david_ross 05-24-2004 01:48 PM

Take a look again.
Modperl/Registry.pm != ModPerl/Registry.pm

Try a symlink:
ln -s /usr/local/lib/perl5/site_perl/5.8.3/i686-linux/ModPerl /usr/local/lib/perl5/site_perl/5.8.3/i686-linux/Modperl

groover 05-24-2004 05:29 PM

Awesome, that fixed one problem. I don't suppose there's anyway way you could take some time and explain what that symlink did? I'm still green at Linux, so learning why that worked would help a lot.

And I see what you mean that they're not equal. Now it looks like all I need to do is setup a handler for Perl? The remaing error is:

[Mon May 24 22:21:04 2004] [error] failed to resolve handler `Modperl::Registry'

I've posed this question to the modperl dist list, and it looks like that's where the conversation is heading. Thanks for the help!

Zac


All times are GMT -5. The time now is 01:41 AM.