cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
Does anyone know how to just disable suphp for one site only?
 

azrael

Active Member
Jul 20, 2003
33
0
156
Modify httpd.conf

search account definition, juse delete

<IfModule mod_suphp.c>
suPHP_UserGroup ....

</IfModule>


Restart httpd
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
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. :(
 

sparek-3

Well-Known Member
Aug 10, 2002
2,120
255
388
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.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
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!
 

darren.nolan

Well-Known Member
Oct 4, 2007
257
0
66
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: