Ruby and PHP in the same VPS

Asked

Viewed 85 times

1

I’m considering the idea of hiring a VPS at Linode to host different projects. The point is that some of them are in PHP and others in Rails. My question is:

It is possible to configure a VPS to run both technologies?

They recommend a way to do it?

I want to configure the server for a deploy with GIT, I’m basing on Heroku for my server, I’m open to suggestions.

PS: I intend to set up an Ubuntu Server myself

  • On a server that you have full control, included from the public ports I think so, but being VPS is kind of hard to have something like this, in case Heroku already has a lot of things ready. But just to let you know I think the question is not about programming or related tools and probably the question will be closed.

  • 1

    If the vps are of type KVM it is possible to install Docker to deploy the applications, from there it is possible to even have different versions of php running "on the same server" for example, I do this in a cloud on OVH and it worked very well for me

1 answer

0

Yes it is possible Voce will just need to configure different ports for the service.

My suggestion would be to change the door of the two services to an unconventional port != 80 and install Nginx to work as a reverse proxy redirecting internally to application

As for deploying by git this will be a setup the indifferent part of the way you configure applications

Browser other questions tagged

You are not signed in. Login or sign up in order to post.