13Jan/102
How To Move Apache’s Htdocs to Home Directory
For me, as developer, working with apache on home directory is the preferred way than working on default installation directory. To move your htdocs to home dir, you can follow this simple step.
- Create directory on your home dir, for the sake of this tutorial, let's call it
wwwroot. - Change htdocs location at
/etc/apache2/sites-enabled/000-defaultto your~/wwwrootby editing every occurence of/var/wwwinto/home/{username}/wwwroot. Replace {username} with your own username. - Change apache's running user to your username by editing
APACHE_RUN_USERvalue to your username at/etc/apache2/envvars - restart your apache server by executing
sudo /etc/init.d/apache2 restart.
You should now have successfully moved your htdocs into your home directory.
-
http://www.datadoctor.biz Data Recovery
-
http://twitter.com/ItaloAndre Italo André








