PDA

View Full Version : suExec doesn't seem to work


everyone00
03-14-2009, 01:17 PM
I used the easy cPanel setup method. However, my PHP processes (lsphp5) are running as nobody rather than the user. How can I fix this?

mistwang
03-14-2009, 08:06 PM
http://www.litespeedtech.com/docs/webserver/config/general/#phpSuExec

everyone00
03-15-2009, 07:15 AM
http://www.litespeedtech.com/docs/webserver/config/general/#phpSuExec

I've tried that before posting. I tried the "User's Home Directory Only" settings this time around, but the script still executes as nobody. I checked Force GUID and it's not set. Any other settings I can check?

mistwang
03-16-2009, 10:19 AM
It is under "Server"->"General" tab, "Using Apache Configuration File".

everyone00
03-16-2009, 01:00 PM
It is under "Server"->"General" tab, "Using Apache Configuration File".

What should I check there? suExec is enabled there (set to Yes).

everyone00
03-16-2009, 08:53 PM
I've tracked the cause of this problem, but don't know the solution. If I got to x.com/myphpfile.php it runs as "x". If I go to mip/~x/myphpfile.php it runs as nobody. It looks like LiteSpeed doesn't recognize the user in the latter case. Why is that?

mistwang
03-17-2009, 08:54 AM
Please try 4.0 release, just change the version number in our 4.0rc1 download link published in the forum, it works in our lab.

everyone00
03-17-2009, 03:06 PM
Please try 4.0 release, just change the version number in our 4.0rc1 download link published in the forum, it works in our lab.

Tried that. It doesn't fix the problem. The script is still executed as nobody.

mistwang
03-17-2009, 03:59 PM
What's your cPanel version?
Which version of Apache was used?
Have you customized httpd.conf?
Is it possible for us to login to your server and take a look?

everyone00
03-17-2009, 04:36 PM
What's your cPanel version?

cPanel 11.24.4-S33345 - WHM 11.24.2 - X 3.9

Which version of Apache was used?

Server version: Apache/2.2.11 (Unix)

Have you customized httpd.conf?

No.

Is it possible for us to login to your server and take a look?

Yes, just let me know where to e-mail the information.

mistwang
03-17-2009, 04:40 PM
just PM the login information.

mistwang
03-18-2009, 10:34 AM
find out the root cause of the problem. /home/ is symbolic link to /vol/home/ directory, so it cause some confusions with UserDir feature. It has been addressed in latest 4.0 build. Works properly now.

masood_y
04-05-2009, 01:57 AM
I have "everyone00" issue too.
many hosted sites on our server hacked.
How can resolve this issue?

mistwang
04-05-2009, 02:07 PM
Upgrade to the latest release and use some advice in
http://www.litespeedtech.com/support/forum/showthread.php?t=2814

masood_y
04-05-2009, 11:22 PM
My version is 4 and all in http://www.litespeedtech.com/support/forum/showthread.php?t=2814 is ok now.
But users can run file as nobody too!

mistwang
04-06-2009, 11:48 AM
All user's PHP script runs as its own user id, looks normal to me.