Quantcast
Viewing all articles
Browse latest Browse all 17

open_basedir restriction in effect

PHP threw up this error today

PHP Warning:  Unknown: open_basedir restriction in effect. File(/foo/index.php) is not within the allowed path(s): (/bar/:/tmp/:/usr/share/pear/)

Seems open_basedir is set in php.ini, however it can also be set on a directory by directory basis within apache as follows:

Alias /foo /somepath/filesystem
<Directory /somepath/filesystem>
    php_admin_value open_basedir /somepath/filesystem
</Directory>

Additional information here : http://www.php.net/manual/en/ini.sect.safe-mode.php


Viewing all articles
Browse latest Browse all 17

Trending Articles