MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Dipak Bhoi on February 07, 2015, 03:49:19 PM

Title: PHP Warning: shell_exec() has been disabled for security reasons
Post by: Dipak Bhoi on February 07, 2015, 03:49:19 PM
Hello Guys,

One of our client was facing an issue at the time of installing installing vTiger on his VPS. He was receiving an error as mentioned below:

Quote[06-Feb-2015 04:19:16 Europe/London] PHP Warning:  shell_exec() has been disabled for security reasons in /home/username/public_html/watch_data_crm/modules/Migration/schema/600_to_610.php on line 923

It is because shell_exec() is disable on the server. You need enable that function to execute the script completely. Go to php.in configuration file and remove the shell_exec from disable_funcitons. Save and quite the fie and restart the apache service.

Quote#vi /usr/local/lib/php.ini

Quotedisable_functions =

:wq

Quote#service httpd restart

That's all, Enjoy  :)!!