Disable Specific PHP Functions via PHP.ini

Find the location of your PHP.ini.

Then edit the PHP.ini file:

vi /etc/php5/fpm/php.ini

And change the disable_functions value:

disable_functions = show_source,proc_open,popen,eval,mail,exec,passthru,shell_exec

Restart PHP and the web server.

More Related Posts