Okay, so on a fresh ubuntu 12.04, I install the lamp stack via: sudo tasksel install lamp-server
The next thing I want to do is change the User and Group that apache runs as and restart. Should be easy, right? WRONG.
Apache is installed such that it gets the User and Group from /etc/apache2/envvars I edit this file and change the User and Group, then do "apachectl restart" and... nope, the old User and Group are still in use (as confirmed via phpinfo). But if I do "apachectl stop" followed by "apachectl start" THEN it works. However, this sucks because I'm trying to write a bootstrap.sh script for Vagrant, and neither of these methods work in that context (I guess stop/start happens too fast, so while "stop" works, "start" does not.
In a perfect world, "restart" would do its job and actually reload the new values from envvars. Any ideas??