Best way to install wordpress and rails on same domain

Posted June 16, 2020 999 views
Ruby on RailsNginxWordPress

I have an nginx droplet with a rails app on it - I now need to add a wordpress site (as the landing pages to sit in front of my app.

Im nervous about having wordpress and (my current app):‘rails and elasticsearch and postgres db ’ on one droplet. I was wondering about having wordpress on a separate droplet, so that the wordpress/php/mysql doesnt fight with the rails/elasticsearch/postgres

It all needs to be based on the same domain.

Whats the best way to do this? Separate droplet or same droplet?

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

Hello, @christopherT

If you think that the droplet can handle both applications without any issues you can go ahead and install WordPress on the same droplet. However if you would like to keep things separate you can just spin up a WordPress droplet using the one-click install from the marketplace:

This will be the fastest and the easiest way to deploy a WordPress installation on DigitalOcean droplet.

If you would like to install WordPress manually on the same droplet you can follow the listed steps in our tutorial here:

Hope that this helps!


by Justin Ellingwood
by Brian Boucheron
WordPress is the most popular CMS (content management system) on the internet. It allows you to easily set up flexible blogs and websites on top of a MySQL backend with PHP processing. In this guide, we'll focus on getting a WordPress instance set up on a LAMP stack (Linux, Apache, MySQL, and PHP) on an Ubuntu 18.04 server.
  • I’m in doubt about why I use LAMP …

    Could you explain why using Apache in this case …
    Does it help with performance?
    Would it be better than NGINX?

    And what is the correct way to use NGINX with Apache to have a better performance …

    • Hi,

      Apache is proven to work good with WordPress, but if you’re keen on using Nginx you can do that as well. We have an article for Nginx as well which you can check here:

      As mentioned you can keep the rails app and the WordPress site on the same droplet perhaps with the help of docker in order to keep them separate, but if you want to have them as side to side projects you an spin the WordPress site on different droplet as well.


      by Lyn Muldrow
      WordPress has seen an incredible adoption rate among new and experienced engineers alike, and is a great choice for getting a website up and running efficiently. After an initial setup, almost all administration for WordPress websites can be done through its graphical interface. In this tutorial, learn how to set up a WordPress instance on Ubuntu 20.04.