Hey Guys,
I've got a server up and running fine and i've been going through all of the parts testing it, mail works, ftp now works, mysql works okay.
However, PHP/MySQL integration produces these errors (they may be strictly PHP but the files should also access MySQL):
Code:
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/config.php) is not within the allowed path(s): (/home/www/web1/) in /home/www/web1/web/scripts/database.php on line 3
Warning: main(config.php) [function.main]: failed to open stream: Operation not permitted in /home/www/web1/web/scripts/database.php on line 3
Fatal error: main() [function.require]: Failed opening required 'config.php' (include_path='.:/usr/share/pear') in /home/www/web1/web/scripts/database.php on line 3
The script database.php on line 3 does:
Code:
require('config.php');
The code in config.php just sets some variables, nothing fancy.
This has worked fine on my current web host that I use, I presume I need to wort out some open_basedir restrictions. How do I do this?
Cheers
Recent comments
15 hours 49 min ago
20 hours 54 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 5 hours ago
2 days 5 hours ago
2 days 7 hours ago