Hi, I'm having a bit of trouble getting suexec to run properly.
Basically when I try execute a PHP script with SuexecUserGroup set, I get the following error:
uid: (501/uname) gid: (501/501) cmd: php-cgi
command not in docroot (/usr/bin/php-cgi)
Without SuexecUserGroup set, they work fine, but obviously aren't executed as the script's owner.
Here's one of the domain's configs:
SuexecUserGroup uname gname
allow from all
CustomLog logs/domain-access_log common
And the suexec config info
Any suggestions on what I might be doing wrong? I can provide other info if needed.
For a bit of background info, the end result i'm trying to achieve is for files that get uploaded via a php script to be owned by the user account that owns the script rather than by the apache user. From what I can tell, suexec is the way to accomplish this.