Does anyone know how to just disable suphp for one site only?
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
Anyone know?![]()
→ Number1Host.net
→ Shared, Reseller, and Dedicated Hosting
→ Server Setup, Management, and Security
→ The Web's Number 1 Host - Number1Host.net
Suphp (and Phpsuexec) is a server-wide setting. It is either enabled for all websites, or disabled for all websites.
search account definition, juse delete
<IfModule mod_suphp.c>
suPHP_UserGroup ....
</IfModule>
Restart httpd
Thank you Azrael, I did not know that!
→ Number1Host.net
→ Shared, Reseller, and Dedicated Hosting
→ Server Setup, Management, and Security
→ The Web's Number 1 Host - Number1Host.net
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.
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
Just on this note,
Couldn't you
and make sure all the php files are world read? Because then that would technically be using PHP without suPHP, but with suPHP?Code:<IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule>![]()