Question

It's possible install a LAMP configuration in my existing Ubuntu and Ruby Droplet?

Posted March 1, 2016 2.5k views
LAMP Stack

It’s possible install a LAMP configuration in my existing Ubuntu and Ruby Droplet? This is just for testing purpose.

Thanks!

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

It is definitely possible to install a Ruby on Rails app alongside the LAMP-stack. Though there are a few things to keep in mind. In particular, only one process can bind to port 80 at a time. So how you set them up depends on how you are already are running the Rails app.

There are a few ways to approach it. If you are running the Rails app behind Apache using something like Passenger, then just adding a new virtual host should work fine. These tutorials should point you in the right direction:

If you run it behind Nginx, using the LEMP stack rather than LAMP might make more sense:

But you could also proxy from Nginx to Apache:

by Justin Ellingwood
One of the most common steps to take when setting up a new server is to install a LAMP stack. LAMP stands for Linux, Apache, MySQL, and PHP. These individual components, when used together, allow us to host dynamic web content like websites and web apps on our server. We will demonstrate how to install these pieces and configure a basic setup for Ubuntu 14.04 in this guide.
Submit an Answer