Skip to main content

Enabling Shell Exec ()

Comments

9 comments

  • PenguinInternet
    Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it
    0
  • dolla_indra
    Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it

    if i have access to whm and want to active only for one account, what sholud i do? i am using cloudlinux 6 and whm 98.0.8 sorry @joshreynolds2 because comment here
    0
  • quietFinn
    I am trying to enable Shell Exec () for software that I am using on my site but when I go to the PHP.ini file in WHM or through cPanel I don't find it by the disable_functions section where its supposed to be, how can I enable this option ? either through CLI or WHM/cPanel ?

    Go to WHM -> Software -> MultiPHP INI Editor, there select Editor Mode, then select PHP version you want to change, it opens the config file for that version, then find the disable_functions line, remove shell_exec from that line and click Save.
    0
  • joshreynolds2
    I do have access, I am running my own server. but in the php.ini settings on line 304 theres nothing just the disable functions, but nothing next to it.
    Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it

    0
  • joshreynolds2
    Unfortunately its not located there somehow. Ill post a screen shot.
    Go to WHM -> Software -> MultiPHP INI Editor, there select Editor Mode, then select PHP version you want to change, it opens the config file for that version, then find the disable_functions line, remove shell_exec from that line and click Save.

    0
  • joshreynolds2
    That helped so much!! thank you!!!
    Maybe this will help you:
    0
  • zeki

    How do you enable this? The post that says maybe this will help you is empty.

    0
  • cPRex Jurassic Moderator

    zeki - I've updated that post to have the missing link!

    0

Please sign in to leave a comment.