Multiple WordPress blog installation

What is the process to install multiple WordPress blogs on a single DigitalOcean droplet? What are the steps to do multiple WordPress installations?

Have a look!

https://gulshankumar.net/install-wordpress-with-lemp-on-ubuntu-18-04/

  1. Create a new database, assign unique user and password
  2. Create a new directory, put WP files there
mkdir -p /var/www/2nd.example.com

Second site configuration must be like this

Keep server name on top to set priority and prevent unexected redirect to different site

# HTTP to HTTPS
server {
    server_name 2nd.example.com;
    server_tokens off;
    listen         80;
    return 301 https://$host$request_uri;
}
server {
server_name second.example.com; 
listen 443;
server_tokens off;
index index.php index.html index.htm;

client_max_body_size 0;
ssl_certificate /etc/letsencrypt/live/2nd.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/2nd.example.com/privkey.pem;
root /var/www/2nd.example.com;

error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

...
1 Like