The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    cPanel Access Level:
    Website Owner
    Hi,

    How can I verify that suPHP is enabled?
     
  2. svabhilash

    svabhilash Member

    Joined:
    Apr 14, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  3. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    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:
    451
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    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.
     
Loading...

Share This Page