Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install Passenger for Nginx:

$ gem install passenger
$ passenger-install-nginx-module

During the installation Passenger want to compile and install Nginx. Is it necessary step?

I have checked my installation and found that I have already installed Nginx with Passenger module:

appls:/www/redmine # zypper se passenger
Loading repository data...
Reading installed packages...

S | Name                      | Summary                                          | Type   
--+---------------------------+--------------------------------------------------+--------
i | rubygem-passenger         | Easy and robust Ruby web application deployment  | package
  | rubygem-passenger-apache2 | Passenger apache module                          | package
i | rubygem-passenger-nginx   | Passenger Nginx module for Ruby on Rails support | package

Can I skip Nginx installation during Passenger setup?

share|improve this question

migrated from stackoverflow.com Jun 3 '11 at 10:30

This question came from our site for professional and enthusiast programmers.

    
This should be on Server Fault. –  reinierpost Jun 2 '11 at 11:24

2 Answers 2

up vote 1 down vote accepted

You need to recompile nginx with passenger enabled. Per the manual of passenger. (My DNS is broken so I will update this answer with the link once it's back up.)

If I'm not mistaken that's also what the installer tells you. Maybe there is a pre-packaged version of NGINX + Passenger for your distribution?


Update: You can try with the following configuration whether you can use passenger. Also look for a passenger_root variable in one of your configs. Otherwise, try to locate the passenger software on your system.

passenger_enabled on;
root /var/sites/redmine/public;

If the passenger_root variable is not there, try to add it to http{}

passenger_root /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/passenger-3.0.7;
passenger_ruby /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby;

These paths are from my system.

share|improve this answer
    
Looks like there is. I have updated my question. –  demas Jun 2 '11 at 7:57

If you're updating passenger via the gem but your passenger nginx module is from your distro's repository, there could be a version mismatch, so I'd recommend doing the nginx install. Since nginx doesn't do dynamically loaded modules (they're linked in at build time) you need to rebuild it with the latest passenger module each time you update assuming the C parts of the nginx module have changed between updates.

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.