Passenger Installation with Nginx Fails

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



Leave a reply



Submit