Fantastico warnings with disabled shell_exec()

If you manage your cPanel server, like everyone out there, you will take steps secure your cPanel server. Once common practice in doing that is to disable PHP functions that are considered potentially dangerous. Dangerous in the sense that these are often used by hackers and rarely used otherwise in common scripts.
I did the same this morning and found that after disabling shell_exec(), fantastico start showing error.

warning: Shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine….. on line xx

The solution is very simple, you need to follow two simple steps:

  1. Log into WHM as root, click on Tweak Settings >> PHP section >> select “IONCUBE PHP Loader”
  2. Log into your server as root via SSH and execute following command
/scripts/makecpphp

.

warning: Shell_exec() has been disabled for security reasons in /tmp/