Re: [PHP] open_basedir restriction in effect

[email protected] (Yannick Warnier)
Newsgroups php.general
Message-ID <1209089275.23771.4.camel@localhost>
Le jeudi 24 avril 2008 à 15:35 -0700, Richard Kurth a écrit :
> *I keep getting this warning when I try run my script that I what to 
> look at the data in the mailbox for bounced email
> 
> Warning*: opendir() [function.opendir 
> <http://easycontactpro.com/function.opendir>]: open_basedir restriction 
> in effect. 
> File(/var/qmail/mailnames/easycontactpro.com/bounce/Maildir/new) is not 
> within the allowed path(s): 
> (/var/www/vhosts/easycontactpro.com/httpdocs:/tmp)
> 
> 
> I have set open_basedir 
> ="/var/qmail/mailnames/easycontactpro.com/bounce/Maildir/new" in the 
> php.ini file and restarted apache.
> 
> How can I look at the files in this directory

Hi Richard,

Any chance you would have a virtual host configuration or some part of
your scripts that redefine the open_basedir?

I would put some logging in the middle with ini_get('open_basedir'); and
see if it changes sometime between the first line of your script and the
location where the error above appears.

Yannick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.