perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Schindl <tomAtLi...@gmx.at>
Subject Re: Working directory: CGI vs. mod_perl
Date Mon, 01 Aug 2005 11:30:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you are running mp2 that's true simply because of the fact that chdir
in perl is not thread-safe :-(

If you are running in prefork(which is only available on *nix) you could
chdir yourself at the top of your handler.

Tom

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.
> 
> Thanks,
> 
> Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC7gfRkVPeOFLgZFIRAt8pAKCKCOD7vjeCgaA1rM18++zxgj1EfQCeIM4C
QAMOTh3qv3isXWIcpFY+cF0=
=9u+Q
-----END PGP SIGNATURE-----

Mime
View raw message