Re: Problems with Apache 2.0, mod_perl2 and perl
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 31 May 2006 20:03:06 GMT
"Eric R. Meyers" <ermeyers@xxxxxxxxxxxx> wrote:
3. When I try to run a simple CGI.pm program under Apache, with the
static
perl, the perl can't find CGI.pm in the @INC paths. Of course, the
script works just fine from the command line.
a) The @INC is correct as shown in the error_log, and CGI.pm
didn't
relocate.
Anybody got a clue?
Is perl allowed to access the CGI.pm file?
Try a simple CGI script that does something like:
print "Content-type: text/plain\n\n";
unless ( open my $fh, "/path/to/CGI.pm" ) {
print "Can't open CGI.pm for reading: $!\n";
exit;
}
print "Could open CGI.pm for reading\n";
I guess you'll get the Can't one.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
.
- Follow-Ups:
- Re: Problems with Apache 2.0, mod_perl2 and perl
- From: Eric R. Meyers
- Re: Problems with Apache 2.0, mod_perl2 and perl
- References:
- Problems with Apache 2.0, mod_perl2 and perl
- From: Eric R. Meyers
- Problems with Apache 2.0, mod_perl2 and perl
- Prev by Date: Problems with Apache 2.0, mod_perl2 and perl
- Next by Date: Re: Problems with Apache 2.0, mod_perl2 and perl
- Previous by thread: Problems with Apache 2.0, mod_perl2 and perl
- Next by thread: Re: Problems with Apache 2.0, mod_perl2 and perl
- Index(es):
Relevant Pages
|