roadmap Posted October 19, 2005 Posted October 19, 2005 I'm getting the error below and I was wondering if someone could take a look at it and tell me what I'm doing wrong to cause it. I have changed my username to just name for security reasons. Thanks. Warning: fopen(): open_basedir restriction in effect. File(/config.php) is not within the allowed path(s): (/home/name/:/usr/lib/php:/usr/local/lib/php:/usr/local/sqmail:/usr/local/cpanel/base/3rdparty/squirrelmail:/tmp) in /home/name/public_html/sitebuilder/sitebuilder/admin/default.php on line 143 Warning: fopen(/config.php): failed to open stream: Operation not permitted in /home/name/public_html/sitebuilder/sitebuilder/admin/default.php on line 143 Warning: fwrite(): supplied argument is not a valid stream resource in /home/name/public_html/sitebuilder/sitebuilder/admin/default.php on line 145 Warning: fclose(): supplied argument is not a valid stream resource in /home/name/public_html/sitebuilder/sitebuilder/admin/default.php on line 147 Quote
borfast Posted October 19, 2005 Posted October 19, 2005 If you're using "fopen('/config.php')", then you're telling your script to open a file that resides in the root of the filesystem, which is out of bounds forregular users. If you change it to "fopen('config.php')" or even "fopen('/home/yourusername/path/to/config.php')" the error should go away. Hope this helps. Quote
roadmap Posted October 20, 2005 Author Posted October 20, 2005 I had to re-install it and start over but thanks for the quick response. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.