Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-24-2004, 11:37 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 12

Rep: Reputation: 0
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] Can't locate Modperl/ 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 to make sure is there, it's found it at /usr/local/lib/perl5/site_perl/5.8.3/i686-linux/ModPerl/ which is within the directories listed above.

I have the line 'LoadModule perl_module modules/' 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!

Old 05-24-2004, 01:48 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Take a look again.
Modperl/ != ModPerl/

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
Old 05-24-2004, 05:29 PM   #3
LQ Newbie
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache server installation problem diptanshu Linux - Software 3 07-11-2005 11:25 PM
Apache installation problem newLinuz Linux - Software 1 12-05-2004 07:40 PM
ModPerl error! init-5 Linux - Software 0 09-29-2003 02:39 PM
ModPerl 5.6 accessing InterBase 7 on Linux RH 7.2 PaulC24 Linux - Software 0 04-20-2003 05:17 PM
apache installation problem... chuck77 Linux - General 1 04-25-2002 05:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration