Philip M. Gollucci wrote on 01.08.2005: >>Jan Eden schrieb: >> >>>Hi, >>> >>>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. >http://perl.apache.org/docs/2.0/user/porting/compat.html# >C_Apache__Registry___C_Apache__PerlRun__and_Friends > >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 /Library/Perl/5.8.1/darwin-thread-multi-2level/ModPerl/RegistryPrefork.pm /man/man3/ModPerl::RegistryPrefork.3pm 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 </Location> What is going wrong here? Thanks, Jan -- Alcohol and calculus don't mix - PLEASE don't drink and derive.