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.
views:
32answers:
3
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
2010-08-25 15:06:41
It's a local machine. I want nginx with passenger for development.
Macario
2010-08-27 02:13:05
Understood. What does this gain you over running your sinatra web app directly from ruby, or using rackup?
Paul
2010-08-27 13:48:01
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
2010-09-27 01:39:58
+1
A:
Try Passenger 3. It automatically detects most permission problems and tells you how to fix them.
Hongli
2010-09-26 18:24:33
A:
Well my mistake was not using rvmsudo to install nginx with passenger, instructions here: http://rvm.beginrescueend.com/integration/passenger/.
Macario
2010-09-27 01:49:36