[BlueOnyx:10388] Re: open_basedir restriction in effect.

Dudi Goldenberg dudi at kolcore.com
Sat Apr 28 04:30:59 -05 2012


The error msg is complaining about the root path (/) - which is indeed not in the allowed path list.

I suspect that your script is trying to access the root path, perhaps due to relative path(s) in it.

I'd try to modify the script to use absolute path instead and try again.

D.

PHP Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/.sites/70/site4/:/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/) in /home/.sites/70/site4/test.php on line 3

So even though I explicitly listed /home/.sites/70/site4/ as a permitted folder, it's not working.

If I change /etc/crontab to use the "#!/usr/bin/php" trick that D mentioned, I get:

PHP Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/) in /home/.sites/70/site4/test.php on line 3



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120428/6d5cce2c/attachment.html>


More information about the Blueonyx mailing list