|
Posted by DrTebi on 10/13/51 11:26
On Tue, 30 Aug 2005 07:00:17 -0700, jeff.battle wrote:
> I'm trying to get PEAR DB to work on my machine at serverbeach but I'm
> getting the following error:
>
> Warning: main(): open_basedir restriction in effect.
> File(/usr/share/pear/DB.php) is not within the allowed path(s):
> (/home/httpd/vhosts/adapttosolve.com/httpdocs:/tmp) in...
>
> phpinfo() says I have the following open_basedir values set:
> open_basedir | /home/httpd/vhosts/adapttosolve.com/httpdocs:/tmp | no
> value
>
> 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?
>
> Thanks,
Well,
if all other things fail, why don't you just create a pear directory in
your /home/httpd/vhosts/adapttosolve.com/adapttosolve.com directory and
copy all the pear stuff in there, then change the include from your pages
to that path...
DrTebi
Navigation:
[Reply to this message]
|