Re: open_basedir restriction in effect

From: Date: Fri, 25 Apr 2008 02:07:55 +0000
Subject: Re: open_basedir restriction in effect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-273551@lists.php.net to get a copy of this message
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

« previous php.general (#273551) next »