Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a VPS with centOS that we currently use for serving php apps with apache. Now I also want to serve rails app from there. Either I can use phusion-passenger or I can do a separate unicorn and nginx setup for my rails app. Which way would be better? I have more than 10 php apps and 1 rails app. I also don't want php apps and rails app and servers to be messed up. And I don't want to invest on a new VPS for single rails app. Regards

share|improve this question
    
Have you tried either of these and did you run into any issues? What defines "better" for you? –  slhck Oct 28 '12 at 11:33
    
I have not tried any of these before that's why I am asking. Better means what's a good approach if I had to serve both PHP and Rails from one VPS. –  roxxypoxxy Oct 31 '12 at 4:36

1 Answer 1

Personally I am more of a fan of the nginx/Unicorn combination (I tried to compare different hosting approaches here).

My server currently runs some small Rails applications (using this stack) and PHP for Piwik analytics stuff.

I have written an ebook which covers setting up a Rails server completely from scratch (using rbenv, nginx, Unicorn and MySQL) and illustrates how to deploy an application manually - the goal is to help readers understand the inner workings of the deployment process.

It should not be too hard to use the steps from the book with Apache instead of nginx if you do not want to run two webservers in parallel.

It's free for people on my mailing list. If you are interested, you can grab your copy here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.