Answer the question
In order to leave comments, you need to log in
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
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
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
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 questionAsk a Question
731 491 924 answers to any question