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
9 hours 19 min ago
14 hours 18 min ago
15 hours 44 min ago
16 hours 37 min ago
18 hours 20 min ago
22 hours 43 min ago
23 hours 35 min ago
1 day 1 hour ago
1 day 14 hours ago
1 day 16 hours ago