Can i install a new WordPress in this way?

Posted December 15, 2013 2.4k views
I have a running WordPress site,Followed this tutorial to install it Now i wish to install a New WordPress site in the same Droplet(Don't wish to use Multisite). Is it possible to install a new WordPress site by following the above tutorial in same way(Changing the directory address) and all other things as needed? My Concern is actually about IP address,I can visit my site currently using the IP address, as in the NGINX config i am using IP address instead of domain. In the above Tutorial of NGINX,I don't think there is anything to change in the NGINX config files. In the step 6 we are copying the default and making changes in the copied file. So,I just wanted to know,Just changing the IP address in the previous installation and pointing the previous and new installation to the domains will work?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

  1. rm /etc/nginx/sites-enabled/wordpress

  2. mv /etc/nginx/sites-available/{wordpress,}

  3. Edit /etc/nginx/sites-available/, set server_name to, and set root to /var/www/

  4. Copy it and modify it accordingly (e.g. instead of

  5. Link both to the sites-enabled directory:
    ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/
    ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

  6. Follow step 3 of replacing wordpress and wordpressuser with the second domain's name e.g. seconddomain.
  7. Move the current site to its own directory:
    mkdir /var/www/
    mv /var/www/* /var/www/
    mv /var/www/.* /var/www/

  8. Download wordpress for the second site:
    mkdir /var/www/
    cd /var/www/
    tar xf latest.tar.gz
    mv wordpress/* .
    mv wordpress/.* .
    rm -r wordpress

  9. Finally, restart nginx:
    service nginx restart

Replace all occurrences of with the website that you're hosting currently on your droplet.

Let me know if that works :]
by Etel Sverdlov
Wordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality. This tutorial shows how to install Wordpress on a server with LEMP (with nginx instead of apache). It is written for Ubuntu 12.04.