I am running the latest Arch Linux
I have looked at topics like these:
- Unlink Fails -> open_basedir issue Warning: unlink() [function.unlink]: open_basedir restriction in effect. File() is not within the allowed path(s):
- open_basedir restriction in effect. File(/) is not within the allowed path(s):
Those suggest editing the php.ini
, adding the directories I need onto open_basedir
. I have tried commenting out open_basedir
entirely and this works but I am worried about the security implications.
How do I find which file I need to add to open_basedir
?
Currently I have:
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/
Edit for people looking at this: I looked at a co-workers ubuntu ini file, and he has the open_basedir
expression in there -- so it must be just poorly written (i.e. does not support safe operations)