# Deployment with nginx + mod\_rails ( a.k.a phusion passenger)

**URL:** <https://www.ruby-forum.com/t/deployment-with-nginx-mod-rails-a-k-a-phusion-passenger/194546>\
**Category:** Rails\
**Created:** [September 6, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/deployment-with-nginx-mod-rails-a-k-a-phusion-passenger/194546 "2010-09-06T22:29:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShellScripter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/958977/32.png) [@ShellScripter](https://www.ruby-forum.com/u/ShellScripter)\
**Post date:** [September 6, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/deployment-with-nginx-mod-rails-a-k-a-phusion-passenger/194546/1 "2010-09-06T22:29:39Z")

</div>

Hi , all there.

My project now is under the deployment phase , and as the title  
mentioned  
i have decided to use the nginx + mod\_rails for my deployment.

I set up the environment in CentOS 5 and using the Ruby Enterprise  
Edtion (REE)  
, rails new myApp , and see the Rails welcome page , i check the rails  
environment  
and phsion passenger throw these for me :

Error message:  
Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/  
Gemfile.lock  
Exception class:  
Errno::EACCES  
Application root:  
/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp

i thought that was a problem of permission , so i used this command:

sudo chmod +rx /opt/ruby-enterprise-1.8.7-2010.02/

however , this didn’t work. i checked using the bundle:

paradigmer@ShellSystem:/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp$ ./  
b check  
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/  
bundler-1.0.0/lib/bundler/definition.rb:184:in `initialize’:  
Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/  
Gemfile.lock (Errno::EACCES)

./b is a the (ln)

Anyone got the idea for this ???

Thank for ur time !

---

<div class="post-metadata">

**Author:** ![ShellScripter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/958977/32.png) [@ShellScripter](https://www.ruby-forum.com/u/ShellScripter)\
**Post date:** [September 7, 2010, 9:26am UTC](https://www.ruby-forum.com/t/deployment-with-nginx-mod-rails-a-k-a-phusion-passenger/194546/2 "2010-09-07T09:26:15Z")

</div>

why is your app insede the ree folder? are you using capistrano? create  
a  
folder at /var name it www and setup deployment with capistrano.

/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ \<----- why is you app in  
there?

---

<div class="post-metadata">

**Author:** ![ShellScripter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/958977/32.png) [@ShellScripter](https://www.ruby-forum.com/u/ShellScripter)\
**Post date:** [September 7, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/deployment-with-nginx-mod-rails-a-k-a-phusion-passenger/194546/3 "2010-09-07T18:07:26Z")

</div>

Because that was a rapid test project …  
i have got the answer , i thought it was my problem when  
commanding …

$ sudo chmod +x opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/  
gems/bundler-1.0.0/lib/bundler/definition.rb  
$ sudo ./b check // b = bundle  
Gemfile satisfied ~~

thx for ur time , and sorry for my mistake T\_T
