Passenger installation with nginx fails
apparently, the gem is installed in a place that's off the path, according to
http://groups.google.com/group/phusion-passenger/browse_thread/thread/78ca12c4838034a6/b5a3c7a00a871283?lnk=gst&q=ubuntu+9.10#b5a3c7a00a871283
Frustrating error, which is why I leave this question rather than delete it (and, with the upvote, I think I'm not the only one with the problem).
phusion passenger nginx module installation error on ubuntu server (12.04.2) 64 bit due to g++ -- internal compiler error
Increasing RAM size from 256 MB to 1 GB solved the issue, initially i was running an cloud instance with 256 MB of RAM, This makes g++ don't have enough memory to compile.
Passenger NGINX module Failing
I see NGINX has a ticket for this that has been closed, but the solution did not work for me.
I did, however, get NGINX up and running again with Passenger by running a customized installation. It's obviously a compatibility issue with versions 2 and up.
First I just pulled down the NGINX source (1.0.15).
In my /usr/local
wget http://www.nginx.org/download/nginx-1.0.15.tar.gz nginx_source
Untar
tar -xvz nginx-1.0.15.tar.gz
Then run the passenger installation. Choosing option 2 (Customized Instalation)
sudo passenger-install-nginx-module
There it prompts for where the source is /usr/local/nginx-1.0.15
and where you want it installed /usr/local/nginx
(in my case).
Everything worked fine from there, anyone know of any real fixed for NGINX 2, please let me know.
Installing Phusion Passenger as a dynamic Nginx module; module doesn't seem to load but no errors
I worked it out; the issue was that I didn't realise that when you install Passenger as a dynamic module, you still need to do the same config as with a regular install. In particular, in your nginx.conf, you need to add this to the http block:
passenger_root /usr/share/passenger-6.0.12;
passenger_ruby /usr/bin/ruby;
passenger_root should be where your passenger is installed, which you can find by running:
passenger-config --root
And passenger_ruby is your ruby file.
I hadn't previously understood that in all configurations, Passenger must be installed and the module file ngx_http_passenger_module.so
is just the glue to tell nginx how to talk to it. Without passenger_root, nginx will act as though the passenger module is not installed.
Related Topics
Check If String Contains Any Substring in an Array in Ruby
Rails 3 Joins -- Select Only Certain Columns
How to Escape Strings for Terminal in Ruby
What Happens When Modifying Gemfile.Lock Directly
How to Add Confirm Message with Link_To Ruby on Rails
Can't Install Rmagick, Pkg-Config: Command Not Found
How to Run Phantomjs on Heroku
Using Calendar_Date_Select with Rails 3
Generate Ssh Keypairs (Private/Public) Without Ssh-Keygen
Error Occurred While Installing Mini_Racer (0.2.0)
Rendering File with Mime Type in Rails
What Are the Advantages of Mocha Over Rspec's Built in Mocking Framework
Rails Can't Login to Postgresql - Pg::Error - Password - Correct Info
Set the Display Precision of a Float in Ruby
Turn Off Verbose SQL/Activerecord for Rails 3.1.1
Pry Not Stopping When Called from a Ruby Script That Reads from Stdin
How to Make Users Automatically Follow Admin User on Sign Up