perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Eden <>
Subject Re: Working directory: CGI vs. mod_perl
Date Wed, 03 Aug 2005 08:13:01 GMT
Philip M. Gollucci wrote on 01.08.2005:

>>Jan Eden schrieb:
>>>I just noticed that the working directory for scripts executed via
>>>a mod_perl handler is /.
>>>Is there a way to change that? Some of the scripts I use rely on
>>>the directory they are stored in is the current working directory.
>As it will say, use
>ModPerl::RegistryPrefork or ModPerl::PerlRunPrefork.
Thanks for the hint - but Apache fails to resolve the handler, although ModPerl::RegistryPreFork
is right there:

[Wed Aug 03 10:09:15 2005] [notice] Apache/2.0.53 (Unix) DAV/2 PHP/5.0.1 mod_perl/2.0.1 Perl/v5.8.1
configured -- resuming normal operations
failed to resolve handler ModPerl::RegistryPreFork
[jan:/usr/local/apache2/conf] ../bin/httpd -V  
Server version: Apache/2.0.53
Server built:   Mar  2 2005 15:11:13
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
[jan:/usr/local/apache2/conf] locate RegistryPrefork

In my mod_perl.conf, I have

Alias /perl/ /Users/jan/Sites/janeden/perl/
PerlModule ModPerl::RegistryPreFork
PerlModule Apache::DBI DBI CGI

<Location /perl>
    SetHandler perl-script
    PerlResponseHandler ModPerl::RegistryPreFork
    # PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    Options +ExecCGI

What is going wrong here?


Alcohol and calculus don't mix - PLEASE don't drink and derive.

View raw message