Skip to content

Instantly share code, notes, and snippets.

@a4amaan
Created December 23, 2019 09:45
Show Gist options
  • Save a4amaan/7a5faf06ed8d7e79ccbe6751e4f4ab55 to your computer and use it in GitHub Desktop.
Save a4amaan/7a5faf06ed8d7e79ccbe6751e4f4ab55 to your computer and use it in GitHub Desktop.
sudo mkdir /var/www/www.example.com
sudo nano /etc/apache2/sites-available/www.example.com.conf
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/www.example.com
<Directory /var/www/www.example.com>
AllowOverride All
</Directory>
</VirtualHost>
sudo a2ensite www.example.com
sudo a2dissite www.example.com
sudo service apache2 reload
sudo unzip /var/www/www.example.com/wordpress.zip -d /var/www/www.example.com
sudo chown -R ubuntu /var/www/www.example.com
sudo chown -R www-data /var/www/www.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment