PHP-FPM Issue
I have enabled PHP-FPM for my website, now getting one error. Please let me know this fix.
ErrorException: exec() has been disabled for security reasons - library/SolidMean/ForumBackup/CronEntry/Backup.php:205-
It seems that your forum software use "exec()" function which is disabled by default in PHP-FPM for security reasons. WHM > MultiPHP Manager - check here first your PHP version for your domain!(in PHP-FPM you first should activate PHP version). after Go to WHM > MultiPHP INI Editor > Editor Mode(tab) > Edit the INI settings of a PHP version(here select the php version which you previously activate for your domain in MultiPHP Manager and search for: disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open remove: exec > save > restart PHP-FPM service (I recommend restart Apache service too) and check again for your error. Take care with "exec" function enabled(do you trust your users?). 0 -
Hello, "exec" is added to the disable_functions PHP configuration option by default with PHP-FPM. The following thread is helpful if you'd like to change the default PHP-FPM configuration values: Enabling PHP-FPM forces disable_functions However, generally it's a good idea to leave the exec function disabled for increased security. Thank you. 0 -
Enabling PHP-FPM forces disable_functions
Without this then any way can Enabling exec function?0 -
Without this then any way can Enabling exec function?
Could you provide a specific example of what you'd like to do? Thank you.0 -
Could you provide a specific example of what you'd like to do? Thank you.
I want enable "exec()" function.0 -
Yes, the only way to modify the default PHP-FPM values for the account is by using the instructions on the linked thread. Thank you. 0
Please sign in to leave a comment.
Comments
6 comments