Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52036 - Perl perl-5.8.2-r1 w/ Apache apache-2.0.49-r1 apache2-mod_perl-startup.pl setting is wrong? perl-status also not working?
Summary: Perl perl-5.8.2-r1 w/ Apache apache-2.0.49-r1 apache2-mod_perl-startup.pl set...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Chuck Short (RETIRED)
URL:
Whiteboard:
Keywords:
: 54026 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-25 12:51 UTC by Daniel
Modified: 2005-07-27 08:03 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
perl-script output (perl-script.html,1.56 KB, text/html)
2004-05-29 15:02 UTC, Daniel
Details
apache w/ mod_perl output: OK 200??? (200 OK.html,705 bytes, text/html)
2004-06-20 14:22 UTC, Ryan Earl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2004-05-25 12:51:39 UTC
I did a fresh emerge of Perl perl-5.8.2-r1 w/ Apache apache-2.0.49-r1 The apache2-mod_perl-startup.pl which is installed to /etc/apache/conf/modules.d/ has this as line three:
use lib qw(/home/httpd/perl);

The Apache ebuild, however, creates the main document root in /var/www/ and config files in /etc/apache2/. There is no /home/httpd/perl directory. I don't know if this matters, but it seems odd.

Also, when I go to http://127.0.0.1/perl-status as is setup by default, the pages load with the correct information but at the bottom of every page there is a large-font "OK", followed by this message:
############# message ######################
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@efficientlearning.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at www.******.com Port 80
################# end message ##################

Reproducible: Always
Steps to Reproduce:



Expected Results:  
It seems all the perl scripts work ok using the perl-script handler in a normal
cgi setting. The perl-status should not have the message at the bottom of it's
pages.
Comment 1 Sergiy Borodych 2004-05-26 02:01:57 UTC
and what in server error log ?
Comment 2 Daniel 2004-05-26 03:16:15 UTC
Sorry, I forgot to mention nothing gets logged to the apache2 errorlog. It's very strange it says to check the log and nothing has been added.
Comment 3 Chuck Short (RETIRED) gentoo-dev 2004-05-29 11:22:16 UTC
Can you add the following to your apache.conf, restart and have a look at the error_logs. 

LogLevel error.

More information can be found at

http://httpd.apache.org/docs-2.0/mod/core.html#loglevel

Thanks
chuck
Comment 4 Daniel 2004-05-29 15:02:03 UTC
Created attachment 32272 [details]
perl-script output
Comment 5 Daniel 2004-05-29 15:02:34 UTC
Chuck,
The log level was at warn before, but just for fun I lowered it to error as you have suggested. The page still produces no error. For reference, I have attached the code that the page is generating for the main perl-script page. Notice how the page is entirely generated, then after the closing html tag, the error is dumped in.
Comment 6 Daniel 2004-05-29 15:03:47 UTC
* I mean it still produces the error on the pages but no error gets logged to the error_log.
Comment 7 Chuck Short (RETIRED) gentoo-dev 2004-06-17 07:20:57 UTC
*** Bug 54026 has been marked as a duplicate of this bug. ***
Comment 8 Ryan Earl 2004-06-20 13:59:50 UTC
Error log:

[Sun Jun 20 15:45:15 2004] [error] failed to resolve handler `RTG::View'
[Sun Jun 20 15:45:15 2004] [error] [client 24.175.4.23] Can't locate RTG/View.pm in @INC (@INC contains: /home/httpd/perl /usr/lib/perl5/vendor_perl/5.8.4/x86_64-linux/Apache2 /usr/lib/perl5/5.8.4/x86_64-linux /usr/lib/perl5/5.8.4 /usr/lib/perl5/site_perl/5.8.4/x86_64-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/x86_64-linux /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/x86_64-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.4/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl . /usr/lib/apache2/ /usr/lib/apache2/lib/perl) at (eval 34) line 3.\n
Comment 9 Ryan Earl 2004-06-20 14:22:42 UTC
Created attachment 33676 [details]
apache w/ mod_perl output: OK 200???

Check out this page available at https://www.hardcore-gaming.net/rtg/

I'm trying to get RTG to display, it needed mod_perl for somethings.  Now I
can't even get .php files to load under that directory, eg rtg.php

Ideas?
Comment 10 Ryan Earl 2004-06-20 14:26:48 UTC
error log:

[Sun Jun 20 16:25:50 2004] [error] [client 24.175.4.23] Cannot connect to database. at /usr/lib/perl5/5.8.4/CGI/Carp.pm line 314.\n
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-07-27 08:03:10 UTC
mod_perl-2.0.1 is in portage, please give it a try and if there are still
issues, open a new bug.

Closing this stale bug.