Phusion Passenger Nginx Module Installer V3.0.17 Issue on Debian 6.0.5 Amd64 Due to Broken Package

Phusion Passenger Nginx module installer v3.0.17 issue on Debian 6.0.5 amd64 due to broken package

I had the same issue with libcurl4-openssl-dev. Try sudo apt-get install libcurl4-gnutls-dev which should work just fine.

Give it a try, and if it doesn't work please let me know and I'll show you a work around to have libcurl4-openssl-dev installed.

Nginx + Passenger

Run 'nginx -V', that will tell you what configure arguments were used to compile your distribution's Nginx. Pass those same arguments to passenger-install-nginx-module.

Is Passenger Deprecated for Nginx versions above 1.14?

It is not deprecated, no. The problem is that the packaged module you are trying to install was made for an older Nginx version that is distributed through the system default repository. This appears in the installation guide that you've mentioned:

At this point we assume that you already have Nginx installed from your system repository.

What this means is that the following instructions assume that you have Nginx specific version (1.14.0 in your case) installed, for which the packaged module was built. This is emphasised in the new passenger documentation:

If you want to use our packaged Nginx module, you must use your distro's provided Nginx package. If for example you have the repo provided by NGINX setup, you will instead need to compile a dynamic module compatible with that Nginx.

The link in the last quote will bring you to the guide on how to compile a dynamic passenger module and enable it in Nginx configuration. I will not repeat the whole process to keep the answer short but the general approach is this:

  1. Get passenger module for Nginx source code.
  2. Get Nginx source code for the version you have installed.
  3. Compile Nginx with the passenger module:
cd /path-to-nginx-source-dir
./configure --prefix=/opt/nginx \
--with-some-configure-flag \
--add-dynamic-module=$(passenger-config --nginx-addon-dir) \
--add-module=/path-to-some-other-nginx-module
make
sudo make install

  1. Make Nginx to load the module by adding this line to nginx.conf:
load_module modules/ngx_http_passenger_module.so;

Personally, I'd rather chosen the 'nginx-behind-nginx' approach than building the module. That is you have Nginx any version you like but it runs as a reverse proxy for another Nginx with passenger enabled (Passenger Standalone). With an unnoticeable penalty to performance this will be much easier to maintain (install, update). See this guide for details.

Rails app not working with Nginx + Passenger

For some reason the openssl support I was selecting when installing passenger-nginx-module was giving me a hard time.

I reinstalled and configured passenger & nginx in a fresh environment using libcurl4 instead of libgnutls and my problem dissappeared.

Has anyone created a debian package for phusion passenger (aka mod_rails) that doesn't depend on rubygems?

There are tools to "convert" gem into debian package. I've personally used http://github.com/thwarted/gem2deb .. However, since my target is a embedded device, i haven't packaged any rails stuff but what you are asking should be really basic stuff..

There's also a debian project which does "official" packages for debian from popular ruby gems. See their site for more info: http://pkg-ruby-extras.alioth.debian.org/index.html



Related Topics



Leave a reply



Submit