[BlueOnyx:10314] 5107R - Issue with PHP open_basedir - running in a cron job

Peter Robbins - Bridgewater Software Group pete at bridgewater.it
Tue Apr 24 11:01:19 -05 2012


Hi I have an issue with open_basedir running in a cron job - this has 
just began happening this week - there have been no changes to the 
server at all, that I am aware of

PHP Warning:  require_once(): open_basedir restriction in effect. 
File(/home/.sites/28/site1/web/admin/incConnection.php) is not within 
the allowed path(s): 
(/usr/sausalito/configs/php/:/tmp/:/var/lib/php/session/) in 
/home/.sites/28/site1/web/cron-daily-mail-insert.php on line 4
PHP Warning:  
require_once(/home/.sites/28/site1/web/admin/incConnection.php): failed 
to open stream: Operation not permitted in 
/home/.sites/28/site1/web/cron-daily-mail-insert.php on line 4
PHP Fatal error:  require_once(): Failed opening required 
'admin/incConnection.php' 
(include_path='.:/usr/share/pear:/usr/share/php') in 
/home/.sites/28/site1/web/cron-daily-mail-insert.php on line 4

I receive the above error - even though the PHP settings for the site 
are set to have the  /home/.sites/28/site1/  directory in it as follows;

/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/home/.sites/28/site1/

Any one got any ideas - my client is getting a bit upset :-(

regards
Pete




More information about the Blueonyx mailing list