Created
December 23, 2019 09:45
-
-
Save a4amaan/7a5faf06ed8d7e79ccbe6751e4f4ab55 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
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