Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Current working directory always "/"
 

Index | Next | Previous | View Flat


yingun at gmail

May 21, 2008, 1:04 AM


Views: 2343
Permalink
Current working directory always "/"

Hello,
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
</Location>


But either I place my script at /var/www/modperl/test.pl OR
/var/www/modperl/directory/test.pl
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

Subject User Time
Current working directory always "/" yingun at gmail May 21, 2008, 1:04 AM
    Re: Current working directory always "/" fred at redhotpenguin May 21, 2008, 1:29 AM
        Re: Current working directory always "/" yingun at gmail May 21, 2008, 2:22 AM
    Re: Current working directory always "/" torsten.foertsch at gmx May 21, 2008, 2:26 AM
        Re: Current working directory always "/" yingun at gmail May 21, 2008, 4:52 AM
    Re: Current working directory always "/" perrin at elem May 21, 2008, 5:22 AM
    Re: Current working directory always "/" pgollucci at p6m7g8 May 21, 2008, 7:28 AM
        Re: Current working directory always "/" perrin at elem May 21, 2008, 8:16 AM
    Re: Current working directory always "/" yingun at gmail May 22, 2008, 2:50 AM
    Re: Current working directory always "/" perrin at elem May 22, 2008, 12:39 PM
    Re: Current working directory always "/" jhfoo-ml at extracktor May 22, 2008, 8:37 PM
        Re: Current working directory always "/" perrin at elem May 23, 2008, 4:34 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.