V
V
vadimstroganov2015-03-18 17:20:00
Apache HTTP Server
vadimstroganov, 2015-03-18 17:20:00

Rails and PHP on the same server?

Good afternoon!
I rent a VPS from FastVPS. Currently only PHP applications are supported.
Who can suggest that both PHP applications and Rails are supported on the same server?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Evgeny Elchev, 2015-03-18
@vadimstroganov

I have such a scheme running on my home computer.
You install nginx and php-fpm, add a site to nginx according to the nginx and php-fpm instructions (a good manual on the digital ocean)
Install rails, a unicore gem and set up a second site in nginx according to the nginx + unicorn instructions (a good manual on the digital ocean)
Enjoy life .
In general, you can deploy sites on one computer in general in all programming languages, the main thing is that everything has different ports. There are no restrictions here

D
Dmitry Vapelnik, 2015-03-18
@dvapelnik

I see such a solution:
install NGINX. for PHP you can install apache, for RoR - unicorn workers. then everything that comes to NGINX is proxyed to the appropriate web server (apache, unicorn). instead of apache, you can raise php-fpm. in such a bundle, NGINX will work as a proxy

S
Seva Zhidkov, 2015-03-18
@Shamoi

You just need to deploy these applications yourself.

V
Viktor Vsk, 2015-03-18
@viktorvsk

There is a web server (apache, nginx) and an application server (unicorn/puma/passenger and probably something like php-fpm)
And the web server proxies requests to the application server through a socket.
One of the easy options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question