Last active
December 22, 2015 08:59
-
-
Save alancoleman/6448835 to your computer and use it in GitHub Desktop.
Some basic BASH Apache admin for reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create fqdn file in conf.d and add localhost | |
$ echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn | |
//File path and gedit to add vhost, so that it will resolve to localhost | |
sudo gedit /etc/hosts | |
//Restart Apache | |
$ sudo /etc/init.d/apache2 restart | |
// Sites available folder | |
/etc/apache2/sites-available | |
// Sites enabled folder | |
/etc/apache2/sites-enabled | |
// Deactivate a site | |
$ sudo a2dissite mysite | |
// Activate a site | |
$ sudo a2ensite mysite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment