Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default Disable suphp for one site?

    Does anyone know how to just disable suphp for one site only?
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Anyone know?
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  3. #3
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    445

    Default

    Suphp (and Phpsuexec) is a server-wide setting. It is either enabled for all websites, or disabled for all websites.

  4. #4
    Member
    Join Date
    Jul 2003
    Posts
    33

    Default Modify httpd.conf

    search account definition, juse delete

    <IfModule mod_suphp.c>
    suPHP_UserGroup ....

    </IfModule>


    Restart httpd

  5. #5
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    445

    Default

    Thank you Azrael, I did not know that!

  6. #6
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Quote Originally Posted by azrael View Post
    search account definition, juse delete

    <IfModule mod_suphp.c>
    suPHP_UserGroup ....

    </IfModule>


    Restart httpd
    Doing that only made the site die and throw 500 Internal Server Errors.
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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. #8
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    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!
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  9. #9
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    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?

Similar Threads & Tags
Similar threads

  1. how to force site to open as www.site than http://site
    By pankajarya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-10-2011, 11:12 PM
  2. suPHP per site?
    By danf in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-07-2009, 06:54 PM
  3. can I disable suPHP per directory?
    By LuckDragon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-16-2007, 06:49 PM
  4. Is there a way to disable urchin per site?
    By GreatBritGirl in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-16-2004, 01:23 PM
  5. How to disable webmail for only ONE site on a server?
    By stupid in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-03-2002, 02:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube