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!

Warning: exec() has been disabled after php 7 update

Discussion in 'EasyApache' started by AlexMadim, Jul 31, 2017.

  1. AlexMadim

    AlexMadim Registered

    Joined:
    Jan 5, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Geneva
    cPanel Access Level:
    Root Administrator
    After i update to php 7 i get " Warning: exec() has been disabled for security reasons in"

    I tryed option in php.ini editor and fail. I tryed everything and i found in forums without success.
    cPanel & WHM 64.0 (build 36)

    Thank you !
     
    #1 AlexMadim, Jul 31, 2017
    Last edited by a moderator: Jul 31, 2017
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What went wrong, any errors? It should be easy enough to go to:
    WebHost Manager »Software »MultiPHP INI Editor
    Click Editor Mode tab here.
    Select ea_php70.
    Search that file for disable_functions.
    Edit line to remove exec,
    Click save.



    mtiphpedtexec.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AlexMadim

    AlexMadim Registered

    Joined:
    Jan 5, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Geneva
    cPanel Access Level:
    Root Administrator
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    425
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you please take a screenshot identical to mine above, to show us what you've got exactly?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is PHP-FPM enabled for this account in "WHM >> MultiPHP Manager"? If so, you can follow the instructions on the following thread to enable the exec function:

    Enabling PHP-FPM forces disable_functions

    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