Hello,
I have recently moved my website from a hosed package on oneandone.co.uk to a dedicated server (for space + bandwidth + the chance to learn). But I am having a problem with Pear DB access through PHP.
The original website works fine at
http://swdl.org but when I changed the links and copied it to the dedcated server it throws up errors:
Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/DB.php) is not within the allowed path(s): (/home/httpd/vhosts/mynetdesk.org/httpdocs:/tmp) in /home/httpd/vhosts/mynetdesk.org/httpdocs/db_connect.php on line 5
Warning: main(DB.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/mynetdesk.org/httpdocs/db_connect.php on line 5
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mynetdesk.org/httpdocs/db_connect.php on line 5
See for yourself at
http://mynetdesk.org.
If anyone could help me identify / solve the problem I'd really apreciate it! php info at
http://mynetdesk.org/info.php.
Thanks,
Richard Craddock