[nycphp-talk] open_basedir is driving me batty
John Corry
lists at neoncowboy.com
Mon Jul 5 19:48:19 EDT 2004
You can.
This looks like the path/directory structure on a Plesk linux server, is
that the case?
If it is, you need to edit either php.ini (not reccomended) or the domain's
vhost.conf file (which is in /conf)
You'll just add a:
<Directory /home/httpd/vhosts/store.purlsoho.com/httpsdocs>
Php_admin_value open_basedir
/all/of/the/paths:/you/want/to/be/able:/to/access/files/from
</Directory>
That's how it works on my Plesk box...
Good luck,
John Corry
________________________________
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Marc Antony Vose
Sent: Monday, July 05, 2004 11:28 AM
To: NYPHP Talk
Subject: [nycphp-talk] open_basedir is driving me batty
Hey there:
I'm getting this error when doing a file_exists check to see if a
file exists:
Warning: file_exists(): open_basedir restriction in effect.
File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/ma
in_h.php) is not within the allowed path(s):
(/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in
/home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php on line
127
I get the error when the file is not present, even though the passed
path is within open_basedir's limitations.
Is there any way I can route around this brain-dead open_basedir
bug, other than prefixing my file_exists() call with a '@'?
--
Marc Antony Vose
http://www.suzerain.com/
The surest way to corrupt a youth is to instruct him to hold in
higher esteem those who think alike than those who think differently.
-- Nietzsche
More information about the talk
mailing list