Hey Johnny,
mod_fgid and suexec is installed and setup by default on our supported Operating Systems. It is now our default execution type for Virtualmin Professional (and recommended for all Virtualmin installations, GPL included). The installer will soon exist for GPL, and it’ll also handle setting this stuff up. The installer needs quite a bit of cleanup and bugfixing, however, before we can unleash it on the thousands of Virtualmin GPL users–our support load would go through the roof. Already, I spend a lot of time dealing with stupid installer bugs (I can say as many bad things about the installer as I want, because I wrote it…).
Could you point me to where someone suggested this would work without a recompile of Apache? That’s incorrect. SuExec needs to be recompiled with a suexec docroot of /home. There’s no avoiding this unless you want to do other, far more uncomfortable and time-consuming things.
Re-compiling Apache is not hard! Don’t waste your time doing stupid stuff trying to avoid an Apache rebuild. Just rebuild Apache and get on with things.
Here’s how:
Grab the latest SRPM for your OS and version from your favorite updates mirror (if using a Red Hat based system) or run "apt-get source apache2" if using Debian/Ubuntu.
SRPM rebuild:
rpm -ivh httpd-blahblah.src.rpm
vi /usr/src/redhat/SPECS/httpd.spec
Find the configure section and change the suexec-docroot line to look like:
–with-suexec-docroot=/home
Save it.
rpmbuild -ba httpd.spec
Install the resulting packages.
Now, edit the yum.conf or up2date configuration and set it to exclude httpd* (so you don’t replace it with subsequent OS updates, and break your suexec).
For Debian/Ubuntu, cd into the apache2/debian directory. Edit "rules" and change the suexec-docroot similar to the above.
Save it.
Build the packages with "debuild" in the apache2 directory.
Install them with dpkg.
Bonus points if you take the time to bump the revision, and add a changelog entry with "dch -i".
As above, edit the apt configuration to skip apache2, so it doesn’t replace your Apache package with one that has suexec set to somewhere else.
I’ve posted other RPM build instructions here in the forums in the past…here’s the thread:
http://www.virtualmin.com/forums/message-view?message_id=29366