perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From william <>
Subject Current working directory always "/"
Date Wed, 21 May 2008 08:04:41 GMT
It took me hours just to notice that my current working directory of
mod_perl2 always appear as "/"

Alias /modperl/ /var/www/modperl/
<Location /modperl/>
  SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
      Order allow,deny
      Allow from all

But either I place my script at /var/www/modperl/ OR
use CGI qw(:standard);
print header;

use Cwd;
print getcwd();

These always print out "/". I have some modules living in my working
directory how can I have the directory working as like no using the
mod_perl2 before ? Thanks

View raw message