Setup Multiple WordPress Sites on DigitalOcean

Hello friends, My name is Naga Durgarao Baddhi, Today I teach you how to setup multiple wordpress websites on DigitalOcean

Note: You must watch above video before executing below commands, If you have any doubts during installation please ask me on comment section.

Setup Multiple WordPress Sites on DigitalOcean
Setup Multiple WordPress Sites on DigitalOcean

Also read: How To Install a Free SSL Certificate on DigitalOcean With Apache2

#01 Step

sudo apt-get update

#02 Step

sudo apt-get install apache2

#03 Step

sudo mkdir -p /var/www/example.com/public_html

#04 Step

sudo chown -R $USER:$USER /var/www/example.com/public_html

#05 Step

sudo chmod -R 755 /var/www

#06 Step

sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf

#07 Step

sudo nano /etc/apache2/sites-available/example.com.conf

#08 Step

<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/example.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

#09 Step

sudo a2ensite example.com.conf

#10 Step

sudo service apache2 restart

If you like this article please share with your friends, If you have any doubts please comment below, Thank you!!!