Wednesday, July 30, 2008

How to Change Apache's www root folder and then restart

I just learned how to change the location of Apache's www root folder and then restart apache...

  1. Edit /etc/apache2/sites-available/default
  2. Change the "DocumentRoot" value from "/var/www' to the new root folder (i.e. "/var/www/joomla15")
  3. Save the changes.
  4. Restart Apache from the Ubuntu command line...
    > sudo /usr/sbin/apache2ctl -k graceful

No comments: