jonne

Member
Jun 9, 2004
14
0
151
Hello!

I am courious about installing either suPHP and/or phpsuexec. Though since we use WHM I am also wondering how to do this the "proper" way.

I checked the addon packages etc for these but couldn't find them. Sometimes I know that things work best if you do them the "WHM compilant way" (tm) ;) As of I wouldn't have a problem installing either of them on a system not managed by WHM it is more of a question how WHM will interact with this and how to avoid it to overwrite custom configuration etc.

So, advice on how to do this properly would be appreciated.

To clarify we have sections in httpd.conf stating:

<VirtualHost x.x.x.x>
..... etc ....
User username
Group usergroup
..... etc ......
</VirtualHost>

and I would like php scripts to by default run as <username>

Greets,
Mikael, Xlate Systems AB
 
Last edited:

jonne

Member
Jun 9, 2004
14
0
151
Thanks!

Just a side question; will this achieve what we are trying to do? i.e. run all php scripts under certain domains as that user (not through CGI interface etc).

Greets,
Mikael, Xlate Systems AB
 

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
jonne said:
Thanks!

Just a side question; will this achieve what we are trying to do? i.e. run all php scripts under certain domains as that user (not through CGI interface etc).

Greets,
Mikael, Xlate Systems AB
yes it will run all php as the user.
 

ZapX.net

Well-Known Member
Feb 24, 2005
51
0
156
Sidman, PA
hi,

Sorry to bump this thread but didn't think I should start my own, as this is not too old.

Isn't phpsuexec now no longer developed? So if I would enable phpsuexec, well, would cpanel ever take it out of the options in updating apache, in the future? That's one thing I'm concerned about.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
The best option, since you prefer administering your server via the WHM, is to enable phpsuexec by recompiling apache. You'll need make sure that Phpsuexec is checked every time you recompile Apache. In addition, make sure that Php scripts are chmod 755, otherwise they won't work.
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I recall in a previous thread that cPanel said that they would continue to support phpsuexec themselves. Since the project disappeared some time ago and it's still functioning just fine in apache 1.3.33 I wouldn't lose too much sleep over it. Disabling phpsuexec is a simple and painless process if need be.
 

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
AndyReed said:
The best option, since you prefer administering your server via the WHM, is to enable phpsuexec by recompiling apache. You'll need make sure that Phpsuexec is checked every time you recompile Apache. In addition, make sure that Php scripts are chmod 755, otherwise they won't work.
It's been quite some time since php scripts needed to be chmodded 755 - just upload them and they work fine (on default 644 setting).