Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 25, 2005, 12:04 pm
rate this thread
getting the following error:
Warning: main(): open_basedir restriction in effect.
File(/usr/share/pear/DB.php) is not within the allowed path(s):
phpinfo() says I have the following open_basedir values set:
open_basedir | /home/httpd/vhosts/adapttosolve.com/httpdocs:/tmp | no
Also, the open_basedir line in the php.ini is commented out so I guess
the value "/home/httpd/vhosts/adapttosolve.com/httpdocs:/tmp" is set
somewhere else. If I do add "/usr/share/pear" to the open_basedir value
in php.ini it only changes the 'master value' and I get the same error.
I did get this pear demo working on a local unix box we have here
though. Here the open_basedir value is set to: open_basedir | no value
| no value
So I'm guessing that this open_basedir 'local value' is the problem.
Anyone have any idea how I can fix this?
- » Info about php script being executed from within function.
- — Previous thread in » PHP Scripting Forum