Question

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

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

Subscribe
Share

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

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.

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