Results 1 to 9 of 9

Thread: Configure Suexec and PHP

  1. #1
    Registered Member
    Join Date
    Jul 2005
    Posts
    31

    Default Configure Suexec and PHP

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by manuk View Post
    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!
    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. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    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. #4
    Registered Member
    Join Date
    Jul 2005
    Posts
    31

    Default

    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. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by manuk View Post
    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 ! .
    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. #6
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,291
    cPanel Access Level

    Root Administrator

    Default

    SuExec affects any script run via CGI, whether the script is Perl, PHP, bash or otherwise.

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by cpanelkenneth View Post
    SuExec affects any script run via CGI, whether the script is Perl, PHP, bash or otherwise.
    Thanks for clarification on that

  8. #8
    Registered Member
    Join Date
    Jul 2005
    Posts
    31

    Default

    so.... php permission errors (internal server errors) should be logged on suexec log ?

  9. #9
    Registered Member
    Join Date
    May 2006
    Location
    Morocco
    Posts
    203
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by manuk View Post
    so.... php permission errors (internal server errors) should be logged on suexec log ?
    disable suphp . or change php to cgi mode or module mode .

Similar Threads

  1. Configure PHP and SuExec UI broken
    By undoIT in forum General Discussion
    Replies: 8
    Last Post: 12-18-2012, 10:11 AM
  2. Configure PHP and SuExec
    By leisegang in forum General Discussion
    Replies: 3
    Last Post: 11-23-2012, 12:36 PM
  3. Configure Suexec and PHP
    By adrov in forum General Discussion
    Replies: 4
    Last Post: 09-23-2009, 08:22 AM
  4. [problem] Configure Suexec and PHP
    By xserverx in forum General Discussion
    Replies: 0
    Last Post: 03-15-2008, 04:07 PM
  5. Configure Suexec and PHP
    By don_will in forum General Discussion
    Replies: 4
    Last Post: 01-11-2008, 10:52 AM
bargain