1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configure Suexec and PHP

Discussion in 'General Discussion' started by manuk, Dec 7, 2007.

  1. manuk

    manuk Member

    Joined:
    Jul 6, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hello

    on "Configure Suexec and PHP" I have these settings


    Default PHP Version (.php files) 5
    PHP 5 Handler suphp
    PHP 4 Handler none
    Suexec on



    Please someone can explain me what is the option Suexec on .
    Should I set on with suphp ? If yes , why ? If no , why ?

    (I am really confused if Suexec is phpsuexec or what else ?)

    Thanks!
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    PhpSuExec is no longer available as of EA3. It has been replaced by SuPHP.

    SuExec on makes Perl scripts run as the user whose account they reside in. It is completely independent of SuPHP.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    If you enable SuPHP, it is generally recommended you run SuExec as well so you can go into tweak settings and disable user nobody from sending mail, as now user nobody would not have a legitimate reason to send mail.
     
  4. manuk

    manuk Member

    Joined:
    Jul 6, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    ok so Suexec is referred to perl ,ok now is clear thank you.

    I think you should change

    Configure Suexec and PHP

    with

    Configure Perl Suexec and PHP


    Then you wrote this

    This tool allows you to select how Apache will deliver PHP content and to select which version of PHP will be used by default for the '.php' file extension.

    You should definitely change it with

    This tool allows you to select how Apache will deliver PHP content and to select which version of PHP will be used by default for the '.php' file extension. This tool allows also you to set on/off perl suexec .


    In this way it will be more clear . I was thinking that suxec was phpsuexec becuase this description

    This tool allows you to select how Apache will deliver PHP content and to select which version of PHP will be used by default for the '.php' file extension.

    refers only to php (!!) and not to perl ! .
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    SuExec inherently only refers to Perl (as it is a Perl tool), it has never referred to PHP. Saying "Perl SuExec" is rather redundant, it's like saying PHP SuPHP.

    However, you do bring up a valid point as the on-screen documentation implies SuExec affects PHP files when it does not. You may wish to submit your recommended verbiage as an official feature request to http://bugzilla.cpanel.net and paste a link to it here so others can vote in favor of such a change.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,320
    Likes Received:
    8
    Trophy Points:
    38
    SuExec affects any script run via CGI, whether the script is Perl, PHP, bash or otherwise.
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    Thanks for clarification on that :)
     
  8. manuk

    manuk Member

    Joined:
    Jul 6, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    so.... php permission errors (internal server errors) should be logged on suexec log ?
     
  9. activa

    activa Member

    Joined:
    May 23, 2006
    Messages:
    202
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Morocco
    disable suphp . or change php to cgi mode or module mode .
     

Share This Page