views:

32

answers:

3

Hi, I've followed the instructions for installing phusion passenger with nginx in ubuntu. I had some issues while installing since I use rvm and I had to install as root and the installer was failing to find rake so i temporarily chmoded /opt to be owned by my user and after installation I resetted ownership to root. I can see nginx welcome page but when I try to visit a sinatra app I get forbidden, the virtual host is pointed to the sinatra app public dir and the permissions for the whole app are 777.

A: 

If this is for a production system, you really don't need the flexibility of RVM as you should be using a single stable version of Ruby and Rails for Phusion. Install the version you need, using Aptitude if that version is available, and be done with it.

Paul
It's a local machine. I want nginx with passenger for development.
Macario
Understood. What does this gain you over running your sinatra web app directly from ruby, or using rackup?
Paul
Well, the app is allways available and you don't have to juggle with different ports if you are running several apps, is just more convinient.
Macario
+1  A: 

Try Passenger 3. It automatically detects most permission problems and tells you how to fix them.

Hongli
A: 

Well my mistake was not using rvmsudo to install nginx with passenger, instructions here: http://rvm.beginrescueend.com/integration/passenger/.

Macario