mod_userdir + suexec = command not in docroot

paulkoan

Well-Known Member
Nov 24, 2006
80
0
156
Hello,

I am using Apache 2.2 + suexec + fcgi + mod_userdir enabled

No problems with accessing via the domain, but if users access php files using userdir (~username), I get a 500 error, and the following log:

Code:
[2008-02-19 21:59:20]: uid: (32034/username) gid: (32033/32033) cmd: php5
[2008-02-19 21:59:20]: command not in docroot (/usr/local/cpanel/cgi-sys/php5
suexec expects that the php5 executable is in the docroot for the user. Which of course it isn't, but it isn't there when they access the site via a domain.

Any ideas what I need to change to get this to work?

Thanks,

Paul
 

paulkoan

Well-Known Member
Nov 24, 2006
80
0
156
The interesting part of this is that it is intermittent.

I have

Code:
[2008-03-24 09:37:33]: uid: (32000/xxxx) gid: (32000/32000) cmd: php5
[2008-03-24 09:37:33]: command not in docroot (/usr/local/cpanel/cgi-sys/php5)
...
[2008-03-24 09:42:21]: uid: (32000/xxxx) gid: (32000/32000) cmd: php5
So the same script is run, less that five minutes after the initial error, and now it works.

What could be causing this?