Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP-FPM Issue

Discussion in 'EasyApache' started by Nirjonadda, Apr 21, 2017.

Tags:
  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I have enabled PHP-FPM for my website, now getting one error. Please let me know this fix.

    Code:
    ErrorException: exec() has been disabled for security reasons - library/SolidMean/ForumBackup/CronEntry/Backup.php:205
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mariusfv

    mariusfv Active Member

    Joined:
    Mar 24, 2013
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    78
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    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?).
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you provide a specific example of what you'd like to do?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I want enable "exec()" function.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice