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.

Disable suphp for one site?

Discussion in 'General Discussion' started by cooldude7273, Jan 5, 2008.

  1. cooldude7273

    cooldude7273 Well-Known Member

    Joined:
    Jan 11, 2004
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Roswell, GA
    Does anyone know how to just disable suphp for one site only?
     
  2. cooldude7273

    cooldude7273 Well-Known Member

    Joined:
    Jan 11, 2004
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Roswell, GA
    Anyone know? :)
     
  3. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    Suphp (and Phpsuexec) is a server-wide setting. It is either enabled for all websites, or disabled for all websites.
     
  4. azrael

    azrael Active Member

    Joined:
    Jul 20, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Modify httpd.conf

    search account definition, juse delete

    <IfModule mod_suphp.c>
    suPHP_UserGroup ....

    </IfModule>


    Restart httpd
     
  5. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    Thank you Azrael, I did not know that!
     
  6. cooldude7273

    cooldude7273 Well-Known Member

    Joined:
    Jan 11, 2004
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Roswell, GA
    Doing that only made the site die and throw 500 Internal Server Errors. :(
     
  7. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you are just wanting to disable PHP completely for that website then what azrael suggested will work. That account will get Internal Server Errors any time a PHP script is accessed, but it will stop PHP from being processed.

    If you want to disable suPHP for a particular account, but still allow PHP to work, then you would have to have mod_php installed as well. I don't recommend running both mod_php and mod_suphp on the same server. I think you are just going to run into problems.

    The bigger question might be to find out why you want suPHP disabled for one account and what can be done to resolve that situation.
     
  8. cooldude7273

    cooldude7273 Well-Known Member

    Joined:
    Jan 11, 2004
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Roswell, GA
    What I wanted was to disable suphp as the loader and use the standard dso.

    However, I managed a workaround for the problem that prompted me to post this, so this is a non-issue now really.

    Thanks all!
     
  9. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Just on this note,

    Couldn't you
    Code:
    <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
    </IfModule>
    
    and make sure all the php files are world read? Because then that would technically be using PHP without suPHP, but with suPHP? :eek:
     
Loading...

Share This Page