Question

How do I install a Wordpress blog on a droplet ($10) where is running a Rails app installed as a One-click apps?

Posted August 8, 2017 1.1k views
Ruby on RailsPHPWordPressUbuntu 16.04

Hello,

I have a server where is running my Rails application. The droplet is located in LON1, the image installation is: Ubuntu Ruby-on-Rails on 16.04.

On my website, I want to have a Wordpress blog. I want to have it here: website.com/blog.

What are the steps to do it? Is the $10 droplet enough for it? Do I need to install everything separately (PHP, Apache, MySQL etc.?) Cannot this affect the Rails app, that has the priority #1?

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

Hello,

To be on the safe side, before proceeding, make sure to create a Snapshot for your Droplet. After that, as you mentioned you need to install LAMP and then Wordpress. You can follow the steps on how to do that here:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04

In order to be able to run both services, you need to make sure that they are not running on the same port. For example if you already have your Ruby-on-Rails app running on port 80, Apache would not be able to start. To fix that what you could do is change the port that your Ruby-on-Rails app is running on a different port and then set up apache as a reverse proxy server to proxy the traffic to your rails app. Here’s how to do that:

https://www.digitalocean.com/community/tutorials/how-to-use-apache-as-a-reverse-proxy-with-mod_proxy-on-ubuntu-16-04

Regards,
Bobby

by Mateusz Papiernik
In this tutorial, you will set up Apache as a reverse proxy using the `mod_proxy` extension to redirect incoming connections to underlying application server(s) running on the same network. There are instructions on setting up a simple web app using the Flask framework to show how Apache interacts with the real application hidden behind it, but you can also follow this tutorial using your existing application server, if you have one.
Submit an Answer