I've did a clean install of RH 8.0 and I'm not getting anywhere with
mod_perl.

First, I had to uncomment the appropriate lines in
/etc/httpd/conf.d/perl.conf to get the server to recognize /var/www/perl
as the location of my mod_perl scripts.

My scripts ran fine under RH 7.1, and _still_ runs fine from the command
line.

I have two scripts, one is an incredibly simple "test.pl" that prints out
the MOD_PERL environment variable, indicating that mod_perl is running.

print ("$ENV{GATEWAY_INTERFACE}<br>\n");
print ("$ENV{MOD_PERL}<br>\n");

gets me:

CGI-Perl/1.1
mod_perl/1.99_05-dev

however, any script more complicated than that fails to run. Not only
don't my scripts run, but the example scripts found in perl-CGI.*rpm,
like /usr/lib/perl5/5.8.0/CGI/eg/javascript.cgi, won't run either.

My apache error logs show

[Sat Nov 02 19:45:47 2002] [error] 5951: ModPerl::Registry: Can't locate
Apache.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/5.8.0/CGI.pm line 161.
Compilation failed in require at /var/www/perl/view.pl line 5.
BEGIN failed--compilation aborted at /var/www/perl/view.pl line 5.

viewing it from a web browser gets you:

Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:
Can't locate object method "request" via package "Apache" at
/usr/lib/perl5/5.8.0/CGI.pm line 269.

I'm lost. . . I've tried all kinds of tweaks. If anybody has got these
running, please let me know.


-- 
\ \/ / _       |~\  _ In God We Trust. All Others Pay Cash.
 >  < / \|\  /|+-< | |   "The world is a comedy to those that think,
/ /\ \\_/| \/ ||__)|_|    a tragedy to those who feel." - Horace Walpole






-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to