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!

how do we verify if suPHP ?

Discussion in 'General Discussion' started by shann, Aug 1, 2008.

  1. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Website Owner
    Hi,

    How can I verify that suPHP is enabled?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. svabhilash

    svabhilash Member

    Joined:
    Apr 14, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    From your shell, just try this one, it will give you the handlers enabled for PHPs in the server.

    root@xxx.xxx.xxx.xxx [~]# /usr/local/cpanel/bin/rebuild_phpconf --current
    Available handlers: suphp dso fcgi cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: suphp
    PHP5 SAPI: suphp
    SUEXEC: enabled
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    66
    Make a php file, change the permissions on that file to 777 and open it in a browser. If it says 500 Internal Server error, your most probably running suPHP.

    Alternatively,
    If you have access to WHM - login, in the menu find Configure PHP and SuExec
    Check the drop down box for "PHP 4/5 Handler" - and if beside that it says "suPHP" - ur running it :)


    Edit: Or shell it as above. How did you post ahead of me, that's just weird. LOL.
     
    #3 darren.nolan, Aug 1, 2008
    Last edited: Aug 1, 2008
  4. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    456
    Likes Received:
    3
    Trophy Points:
    318
    Location:
    Vancouver, Canada
    SuPHP activity is logged in /usr/local/apache/logs/suexec_log. If you tail it, you will see if there is any current activity:
    Code:
    tail -f /usr/local/apache/logs/suexec_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    If PHP has write access it is running suphp. For instance, check for write perms on your current directory, or try creating a file.
     
    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