[URGENT] shell_exec function error

Posted March 30, 2014 4.2k views
Please provide support to us on exec command and shell_exec function on server. These functions is blacklisted on server please can we enable it ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
You get full root access to your droplet so you can enable it yourself. Edit /etc/php.ini and remove shell_exec and exec from the line that begins with "disable_functions" (if that doesn't exist, search for "exec").

Finally, restart Apache or php5-fpm (depending on which you are using).

Verify if you are insert ‘2>&1’ corresponding an ENTER, in your command line