Skip to content

Instantly share code, notes, and snippets.

@zaheeraws
Created October 24, 2020 09:19
Show Gist options
  • Save zaheeraws/d95161a48904604c318358fd2b37f7b3 to your computer and use it in GitHub Desktop.
Save zaheeraws/d95161a48904604c318358fd2b37f7b3 to your computer and use it in GitHub Desktop.
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