acoole Posted March 24, 2008 Share Posted March 24, 2008 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 More sharing options...
MadTechie Posted March 24, 2008 Share Posted March 24, 2008 what are you trying to do ? write to a remote server ? Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-499326 Share on other sites More sharing options...
acoole Posted March 24, 2008 Author Share Posted March 24, 2008 The same server. Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-499333 Share on other sites More sharing options...
MadTechie Posted March 24, 2008 Share Posted March 24, 2008 turn off open_basedir in the httpd.conf file, also check the open_basedir in the php.ini file Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-499342 Share on other sites More sharing options...
wildteen88 Posted March 24, 2008 Share Posted March 24, 2008 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 More sharing options...
acoole Posted March 24, 2008 Author Share Posted March 24, 2008 I have access to php.ini , here it is: http://sampservers.info/phpfreaks/php.ini.txt What do I have to change to that to fix these errors Thanks! Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-499369 Share on other sites More sharing options...
acoole Posted March 24, 2008 Author Share Posted March 24, 2008 bump Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-499578 Share on other sites More sharing options...
acoole Posted March 26, 2008 Author Share Posted March 26, 2008 Small bump(sorry for triple post ) Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-501563 Share on other sites More sharing options...
wildteen88 Posted March 26, 2008 Share Posted March 26, 2008 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 More sharing options...
acoole Posted March 26, 2008 Author Share Posted March 26, 2008 That's from my host(since my server is dedicated so I got it). Here's PHP info: http://sampservers.info/phpfreaks/phpinfo.php Link to comment https://forums.phpfreaks.com/topic/97591-errors/#findComment-501672 Share on other sites More sharing options...
wildteen88 Posted March 27, 2008 Share Posted March 27, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.