![]() |
Warning: fopen() - Warning: shell_exec() - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Warning: fopen() - Warning: shell_exec() (/thread-3940.html) |
Warning: fopen() - Warning: shell_exec() - xalupeao - 08-06-2008 04:43 AM I have two problems >.<! whit shell_exec(): Quote:Warning: shell_exec() has been disabled for security reasons in /var/www/virtual/ccentral.cl/htdocs/panel/games/mohaa/stop.php on line 26 and fopen(): Quote:Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/virtual/ccentral.cl/:/usr/share/php/) in /var/www/virtual/ccentral.cl/htdocs/panel/start.php on line 31 what it is solution ? ..... Thanks ![]() RE: Warning: fopen() - Warning: shell_exec() - sci2tech - 08-06-2008 04:55 AM You must edit php.ini corresponding to your site. In debian it will be in /var/www/fcgi/ccentral.cl/php5 RE: Warning: fopen() - Warning: shell_exec() - xalupeao - 08-06-2008 05:37 AM Perfect :B but one problem <br /> <b>Warning</b>: fopen(/root/mohaa/main/server.cfg) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/var/www/virtual/ccentral.cl/htdocs/panel/games/mohaa/edit.php</b> on line <b>394</b><br /> RE: Warning: fopen() - Warning: shell_exec() - ephigenie - 08-06-2008 05:42 AM fix the permissions on this file. Remember your php is running with a different user. (vu20XX) RE: Warning: fopen() - Warning: shell_exec() - sci2tech - 08-06-2008 05:50 AM Also you need to modify open_basedir in php.ini and add /root/mohaa/main/ folder: open_basedir = "/var/www/virtual/ccentral.cl/:/usr/share/php/:/root/mohaa/main/" . Consider assumed security risk. //Later: Permission denied You already did that. Sorry RE: Warning: fopen() - Warning: shell_exec() - xalupeao - 08-06-2008 06:41 AM No =\ use you seetings sci2tech is not work >.< Quote:<br /> RE: Warning: fopen() - Warning: shell_exec() - sci2tech - 08-06-2008 06:48 AM Quote:chmod -R go+r+x /rootBIG SECURITY RISK!!! RE: Warning: fopen() - Warning: shell_exec() - xalupeao - 08-06-2008 10:28 AM sci2tech Wrote:Quote:chmod -R go+r+x /rootBIG SECURITY RISK!!! I leave the directory as normal once applied that command? |