Hi All

I have a database application developed in perl. I want to put it online ASAP 
using Mason. System details are as follows

Ubuntu 5.10
Apache/2.0.54 (Ubuntu)
PHP/5.0.5-2ubuntu1
mod_perl/2.0.1
Perl/v5.8.7

To test my system I need to execute following script :

=====================
modsec-test.pl

#!/usr/bin/perl

print "Content-type: text/plain\r\n\r\n";

print "\n\n";
print "----------------------------------------\n";
print "This is used by mod_security regression \n";
print "tests in order to verify that the module\n";
print "works as it is supposed to.\n";
print "----------------------------------------\n";
print "\n\n";

foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"\n";
}
=====================

When I try to execute following script from the browser I get following 500 
error :

===============
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to 
complete your request.

Please contact the server administrator, [EMAIL PROTECTED] 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/2.0.54 (Ubuntu) PHP/5.0.5-2ubuntu1 mod_perl/2.0.1 Perl/v5.8.7 Server at 
localhost Port 80
===============

But the same script executes properly if run from console i.e perl -T 
modsec-test.pl

Apache2 error log says :

=====================
Loading Apache2::Request at runtime.  You could increase shared memory between 
Apache processes by preloading it in your httpd.conf or handler.pl file
[Wed Dec 14 23:25:16 2005] [error] [client 127.0.0.1] Can't locate object 
method "new" via package "Apache2::Request" at 
/usr/share/perl5/HTML/Mason/ApacheHandler.pm line 908.\n
=====================

Did google / ask, but could not locate any workable solution. 

Please I need get Mason working ASAP and deploy this application online.

Regards

Joel
9821421965


--
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to