Created
October 24, 2020 09:19
-
-
Save zaheeraws/d95161a48904604c318358fd2b37f7b3 to your computer and use it in GitHub Desktop.
This file contains 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
SITE_NAME= | |
sudo mkdir -p /var/www/{$SITE_NAME} | |
sudo chown -R pi:www-data /var/www/{$SITE_NAME} | |
sudo chmod -R 755 /var/www/{$SITE_NAME} | |
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/{$SITE_NAME}.conf | |
sudo vim /etc/apache2/sites-available/{$SITE_NAME}.conf | |
sudo a2ensite {$SITE_NAME}.conf | |
sudo systemctl reload apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment