Jump to content

Recommended Posts

I've CHMOD'd most things I thought I had to, but I still get the following errors:

 

 

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/home/panel/public_html/server/sfrp/sa-mp/scriptfiles/acoole.ini) is not within the allowed path(s): (/home/cpsfrp:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/cpsfrp/public_html/latestdemoforadmins/done.php on line 77

 

Warning: fopen(/home/panel/public_html/server/sfrp/sa-mp/scriptfiles/acoole.ini) [function.fopen]: failed to open stream: Operation not permitted in /home/cpsfrp/public_html/latestdemoforadmins/done.php on line 77

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/cpsfrp/public_html/latestdemoforadmins/done.php on line 182

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/cpsfrp/public_html/latestdemoforadmins/done.php on line 185

Link to comment
https://forums.phpfreaks.com/topic/97591-errors/
Share on other sites

Is the file acoole.ini created/edited by your script? if it is then it is in the wrong place. You are only allowed to create files in /home/cpsfrp the acoole.ini file is in /home/panel/public_html/server/sfrp/sa-mp/scriptfiles which is out of bounds to you.

 

I don't think you can disable open_basedir yourself if you dont have access to the php.ini.

Link to comment
https://forums.phpfreaks.com/topic/97591-errors/#findComment-499347
Share on other sites

I see you attached the php.ini

 

Is that a fresh php.ini you have downloaded or is that the actual php.ini from your host? As currently open_basedir is not setup in that php.ini nor is safe_mode.

 

Can you link to your phpinfo? Create a script call it info.php with the following code:

<?php phpinfo(); ?>

provide a link to info.php

Link to comment
https://forums.phpfreaks.com/topic/97591-errors/#findComment-501579
Share on other sites

Looked at your php.ini and open_basedir is set to /home/acoole/:/usr/lib/php:/usr/local/lib/php:/tmp however its a local value, which means it is not being set in the main php.ini by somewhere else such as a .htaccess/custom php.ini or httpd.conf. This is most probably set-up in your httpd.conf if you want to remove this restriction you'll need to find where this is being set to.

Link to comment
https://forums.phpfreaks.com/topic/97591-errors/#findComment-502004
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.