Thanks guys. All sorted now. cheers On 24/04/2012 18:07, SB9-PageKeeper Service wrote: > ----- Original Message ----- > From: "Ken - Precision Web Hosting, Inc"<kenli...@precisionweb.net> > To:<p...@bridgewater.it>; "BlueOnyx General Mailing List" > <blueonyx@mail.blueonyx.it> > Sent: Tuesday, April 24, 2012 10:47 AM > Subject: [BlueOnyx:10317] Re: 5107R - Issue with PHP open_basedir - > runningin acron job > > >> ----- Original Message ----- >> From: "Peter Robbins - Bridgewater Software Group"<p...@bridgewater.it> >> To: "BlueOnyx General Mailing List"<blueonyx@mail.blueonyx.it> >> Sent: Tuesday, April 24, 2012 9:01 AM >> Subject: [BlueOnyx:10314] 5107R - Issue with PHP open_basedir - running in >> acron job >> >> >>> 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 >>> >> Pete >> >> What command are you calling it with >> /home/solarspeed/php/bin/php -q >> /home/.sites/28/site1/web/cron-daily-mail-insert.php >> or >> /usr/bin/php /home/.sites/28/site1/web/cron-daily-mail-insert.php >> >> Does it work if you use GET , e.g. >> 10 10 * * * GET http://www.theirwebsite.com/cron-daily-mail-insert.php >> >> >> ---- >> Ken Marcus >> Precision Web Hosting, Inc. >> http://www.precisionweb.net >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ > Peter, > In the site's open base field clear it and put in a '/' forward slash and > save. > should look like below when saved... > /:/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/home/.sites/28/site1/ > > I use curl to run php cronjobs like so... > 10 10 * * * curl http://www.theirwebsite.com/cron-daily-mail-insert.php > > Hope that helps... > David Hahn > > > _______________________________________________ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx
_______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx