I installed mod_suexec from ports with apache22, but unfortunately I can't get my virtualhosts to run as the user specified in httpd.conf with:
I am testing this with a file index.php in DocumentRoot and I have:
Unfortunately the output never changes from whatever I specify with:
User www
Group www
Things I noticed so far:
- mod_suexec.so is loading fine in httpd.conf (if I don't have it it complains of syntax)
- Apache restarts fine.
- If I move the wrapper program /usr/local/sbin/suexec it complains.
Please advise.
Reference:
http://httpd.apache.org/docs/2.0/mod/mod_suexec.html
http://httpd.apache.org/docs/2.0/suexec.html
Code:
# apache master user
User www
Group www
# change user with suexec
<VirtualHost *:80>
SuexecUserGroup user1 group1
ServerName 1.site.com
DocumentRoot /www/site/public
</VirtualHost>
I am testing this with a file index.php in DocumentRoot and I have:
Code:
<?
echo `whoami`;
?>
Unfortunately the output never changes from whatever I specify with:
User www
Group www
Things I noticed so far:
- mod_suexec.so is loading fine in httpd.conf (if I don't have it it complains of syntax)
- Apache restarts fine.
- If I move the wrapper program /usr/local/sbin/suexec it complains.
Please advise.
Reference:
http://httpd.apache.org/docs/2.0/mod/mod_suexec.html
http://httpd.apache.org/docs/2.0/suexec.html