Question

Can i install a new WordPress in this way?

I have a running WordPress site,Followed this tutorial to install it https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

<ol> <br><li><code>rm /etc/nginx/sites-enabled/wordpress</code></li> <br><li><code>mv /etc/nginx/sites-available/{wordpress,currentdomain.com}</code></li> <br><li>Edit <code>/etc/nginx/sites-available/currentdomain.com</code>, set server_name to currentdomain.com, and set root to /var/www/currentdomain.com</li> <br><li>Copy it and modify it accordingly (e.g. seconddomain.com instead of currentdomain.com)</li> <br><li>Link both to the sites-enabled directory: <pre>ln -s /etc/nginx/sites-available/currentdomain.com /etc/nginx/sites-enabled/currentdomain.com <br>ln -s /etc/nginx/sites-available/seconddomain.com /etc/nginx/sites-enabled/seconddomain.com</pre></li> <br><li>Follow step 3 of <a href=“https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04</a> replacing <code>wordpress</code> and <code>wordpressuser</code> with the second domain’s name e.g. seconddomain. <br><li>Move the current site to its own directory:<pre>mkdir /var/www/currentdomain.com <br>mv /var/www/* /var/www/currentdomain.com <br>mv /var/www/.* /var/www/currentdomain.com</pre></li> <br><li>Download wordpress for the second site:<pre>mkdir /var/www/seconddomain.com <br>cd /var/www/seconddomain.com <br>wget http://wordpress.org/latest.tar.gz <br>tar xf latest.tar.gz <br>mv wordpress/* . <br>mv wordpress/.* . <br>rm -r wordpress</pre></li> <br><li>Finally, restart nginx: <pre>service nginx restart</pre></li> <br></ol> <br> <br>Replace all occurrences of currentdomain.com with the website that you’re hosting currently on your droplet. <br> <br>Let me know if that works :]