hoping I can explain this well enough ...
Have several virtual servers and a set of PHP files/scripts that need to be accessed from each server.
These scripts live in a directory called e.g. /home/usera/public_html
Serverb runs as userb/groupb Serverc runs as userc/groupc
The apache directives sections for each of serverb and serverc are the same (except of course for name changes for directories ... and one diff explained next).
Serverb runs the common PHP scripts no problem and has SuexecUserGroup set to its user and group IDs. Serverc fails to run the PHP scripts with SuexecUserGroup set to its user and group IDs. It does run them with SuexecUserGroup commented out. The error in suexec log is
target uid/gid (516/511) mismatch with directory (506/503) or program (506/503)
where 506/503 are the IDs for Serverb and 516/511 are the IDs for serverc.
What is puzzling (at least for me) is that none of the common PHP files have user/group of 506/503 ... they all belong to usera/groupa ... yet they work fine for Serverb ... but fail as above for Serverc.
I don't know whether it's because fcgi runs them as long running processes and they 'owned' by the first site to run them? Or something else.
We would like to have all the virtual servers runs these scripts ... but do not want to comment out the suexec for each.
Info: OS: CentOS 5.4
Virtualmin Pro : 3.78
Webmin : 1.510