[BlueOnyx:08192] Re: open_basedir bug in the SuPHP

Jeff Folk jfolk at qzoneinc.com
Mon Aug 22 19:32:25 -05 2011


On Aug 22, 2011, at 7:19 PM, bluequartz at ozin.com wrote:
> 
> I am fully patched using the latest 5106R 
> I believe that there is a serious bug in the SuPHP feature.
> 
> This bug may have just been introduced.
> 
> With SuPHP turned on I am getting errors like this:
> 
> PHP Warning:  require_once() [<a href='function.require-once'>function.require-once</a>]:
> open_basedir restriction in effect. File(/home/.sites/38/site25/web/wp-load.php)
> is not within the allowed path(s): (/tmp/:/var/lib/php/session/)
> in /home/.sites/38/site25/web/wp-admin/install.php on line 36
> 
> Notice that it is claiming that my open_basedir is set to just:
> /tmp/:/var/lib/php/session/
> 
> whereas on the PHP settings page for that site it is set to:
> /tmp/:/var/lib/php/session/:/home/.sites/38/site25/
> 
> I have tried rebooting, rewriting the open_basedir numerous times. Adding / and .
> but no matter what I do PHP believes that my open_basedir is set to just:
> /tmp/:/var/lib/php/session/
> 
> It is if it is ignoring the open_basedir setting on the PHP settings page completely.
> 
> However as soon as I turn SuPHP off it starts to work again.
> 
> Regards
> 
> Jason

Add /home/ to the global open_basedir field in php settings (so it reads - /tmp/:/var/lib/php/session/:/home/). I had the same problem with my 5107R install.

Jeff



More information about the Blueonyx mailing list