Question

Install wordpress on rails app with subdomain.

Posted April 14, 2019 559 views
Ruby on Rails WordPress 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

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.

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...
Submit an Answer