Warning: shell_exec() has been disabled for security reasons

Posted by ashish1987, 09-15-2007, 12:39 AM
Hey I installed status2k on my server and i am encountering this error. You can take a look at the errors on http://tinyurl.com/264tot I even tried disabling shell_exec and exec from php.ini but that too didnt resolve the issue. Is there a way i can get this thing to run without / with enabling shell_exec? Any help will be highly appreciated. Thanks

Posted by vnsg, 09-15-2007, 12:43 AM
You shouldn't disable shell_exec and exec in php.ini to solve the issue. It is fine if you are running your own dedi box

Posted by ashish1987, 09-15-2007, 01:06 AM
Hey I do not wish to enable shell_exec and exec but i need to get the script running. Please help

Posted by cywkevin, 09-15-2007, 01:50 AM
You need to edit your php.ini file find disable_functions and remove the entry for shell_exec then restart apache

Posted by dollar, 09-15-2007, 02:07 AM
The script requires shell_exec to operate. The error you are seeing is saying "Hey Mister! I can't work because shell_exec has been disabled!" There is most likely no way around it, but you can try contacting the creator of status2k and seeing for sure.

Posted by YYamagishi, 09-15-2007, 02:29 AM
This script needs to run commands on the shell in order to bring up the status data. There is no way you can run it without enabling shell_exec

Posted by CretaForce, 09-15-2007, 07:48 AM
If you run php as fastcgi you can create a new php.ini that applies only to the account you have status2k installed.

Posted by david510, 09-16-2007, 03:31 AM
ashish1987, You may disable the disable_function for this certain domain only through .htaccess and not globally.

هل استفدت من هذا الجواب؟

 أطبع هذا المقال

اقرأ أيضا

Need PHP5 Developer for open source web game project

Posted by openwars, 01-16-2008, 04:54 PMHello hxxp://sf.net/projects/modulargaming is our...

P2V migration

Posted by webservermatrix, 04-23-2009, 06:41 AMHi, We have 2 servers SQL, Web & SM 4.x each with...

Reselling SSL certificates

Posted by luxor, 09-28-2001, 11:11 AMHi: Does anyone know which company is the most...

Invoking classes via Nested includes (php)

Posted by lifewater, 03-15-2007, 04:00 PMHello, I apologize if this is a repeated question,...

[php] Need advices on writing a counter script

Posted by kennethinvest, 09-22-2008, 06:04 PMhello, I would like to make a very simple couter...