Jump to content

Recommended Posts

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...