Skip to main content

enable exec for one cpanel account only? suphp

Comments

4 comments

  • cPanelPeter cPanel Staff
    Hello, It would appear you are thinking that this is backwards. By adding "shell_exec" to the disable_functions (both globally and for that user) then it will disable that feature entirely. It does not mean that this option is ignored for that user. You should try to set: [PATH=/home/usernamehere/public_html/folderhere] disable_functions =
    See if that makes a difference.
    0
  • postcd
    [quote="cPanelPeter, post: 1665221">You should try to set: [PATH=/home/usernamehere/public_html/folderhere] disable_functions =
    See if that makes a difference.
    I tried this now commenting out my current rules and replacing my client username and foldername in the path you provided above. But when "exec" function is in global disable_functions, it still reports error "exec() has been disabled for security reasons" on the client webpage..
    0
  • postcd
    Hello, This topic - Link Removed Merged Threads - lacks solution so i am creating duplicate topic (if that is wrong, i apologize but can not update mentioned topic of mine) Please how do i have PHP exec() disabled for all cpanels, except one or more selected ones? Or enabled per folder. I have updated WHM/cPanel on CentOS 6 Server version: Apache/2.2.29 (Unix) Cpanel::Easy::Apache v3.30.3 rev9999 PHP 5.3.29 (cli) SuPHP
    0
  • cPanelMichael
    Please how do i have PHP exec() disabled for all cpanels, except one or more selected ones? Or enabled per folder. I have updated WHM/cPanel on CentOS 6 Server version: Apache/2.2.29 (Unix) Cpanel::Easy::Apache v3.30.3 rev9999 PHP 5.3.29 (cli) SuPHP

    Hello, The following third-party URL explains how to do this: How to enable exec() (PHP Configuration) Thank you.
    0

Please sign in to leave a comment.