Install wordpress on rails app with subdomain.

April 14, 2019 298 views
WordPress Ruby on Rails Ubuntu 18.04

Hello,
I have created a droplet where i host my rails app. and i am following this tutorial.
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
now how can i create a subdomain where i can host my wordpress site on that same droplet.

Thank you

1 Answer

Greetings!

Basically two things need to happen for you to take your existing server, which currently uses Nginx to reverse proxy to a Rails app, and run a Wordpress site alongside it:

  1. New server block defined for Wordpress site.
  2. PHP installed / configured with Nginx, and that server block.

These steps will not be exact, given that you’re not working from a clean slate. However, this guide should make an excellent reference for the steps necessary in this process:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04

Jarland

by Justin Ellingwood
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. WordPress has seen incredible adoption and is a great choice for getting a website up and...
Have another answer? Share your knowledge.