|
Posted by NC on 02/25/06 20:34
russell.hunter@sashait.co.uk wrote:
>
> Whenever I try to call one of the installed packages, for example:
>
> require_once "DB.php";
>
> I get the following error:
>
> Warning: main(): open_basedir restriction in effect.
> File(/usr/share/pear/DB.php) is not within the allowed path(s):
> (/var/www/vhosts/xentek.co.uk/httpdocs:/tmp) in
> /var/www/vhosts/xentek.co.uk/httpdocs/wda2-winestore/index.php
> on line 19
You need to modify your php.ini. Right now, it has a line that says:
open_basedir = /var/www/vhosts/xentek.co.uk/httpdocs:/tmp
Modify it to the following:
open_basedir =
/var/www/vhosts/xentek.co.uk/httpdocs:/tmp:/usr/share/pear
Alternatively, you can simply disable safe mode...
Cheers,
NC
Navigation:
[Reply to this message]
|