Re: open_basedir "/" not working after upgrade

From: Date: Mon, 30 Aug 2004 17:58:53 +0000
Subject: Re: open_basedir "/" not working after upgrade
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195175@lists.php.net to get a copy of this message
Ed Lazor wrote:
Are you getting any error messages? What makes you say that the open_basedir directive isn't working? Are you trying this from within php.ini?
I quote the original mail: -------------------- I just upgrade PHP from version 4.3.4 to version 4.3.8. After the upgrade, almost everything worked fine but the open_basedir directive. The server I administer provides hosting for several domains, all of those with its own homedir restricted using open_basedir <domainhome> in a <Virtualhost> scope. Some especial directories, for example the webmail directory, is there only one, but it is shared by all the virtualhosts (http://<virtualhost>/webmail/). I achieve that using (en httpd.conf): Alias /webmail "/apache2/htdocs/horde/imp" <Directory /apache2/htdocs/horde >
       php_admin_flag safe_mode off
       php_admin_value upload_tmp_dir /tmp
       php_admin_value open_basedir "/"
</Directory> This worked fine until the upgrade. After it, I get a message claiming that the open_basedir directive is in use, and that "/apache2/htdocs/horde/imp" is not in (/). I guess this could be an error in the open_basedir implementation (or just a change), but I am not sure. What I saw is that in recent version there were a lot of "move" around open_basedir code. Can anybody help me with this? is there any patch I could apply to solve this? -------------------- Since this was something that start after the upgrade, I supposed that there was a change I the code. The message I get is: Warning: Unknown(): open_basedir restriction in effect. File(/apache2/htdocs/horde/imp/index.php) is not within the allowed path(s): (/) in Unknown on line 0 Warning: Unknown(/apache2/htdocs/horde/imp/index.php): failed to open stream: Not owner in Unknown on line 0 Warning: (null)(): Failed opening '/apache2/htdocs/horde/imp/index.php' for inclusion (include_path='/usr/local/lib/php:.') in Unknown on line 0 But after setting
       php_admin_value open_basedir none
instead of
       php_admin_value open_basedir "/"
the problem disappeared. I just want to know the exact meaning of that directive. Thanks... -- Federico Petronio petrus@activesec.biz

« previous php.general (#195175) next »