Is the nginx version hardcoded in passenger-install-nginx-module ?

348 views
Skip to first unread message

Thibaut Barrère

unread,
Feb 6, 2011, 3:29:27 PM2/6/11
to Phusion Passenger Discussions
Hello,

I'm curious as I'm automating my setups with chef, and currently using
passenger-install-nginx-module --auto --auto-download.

Is the version of nginx installed by this command line hardcoded into
passenger, in order to match ? Or is it downloading the latest stable
of nginx?

Thanks!

-- Thibaut

Hongli Lai

unread,
Feb 6, 2011, 3:38:37 PM2/6/11
to phusion-...@googlegroups.com
On Sun, Feb 6, 2011 at 9:29 PM, Thibaut Barrère
<thibaut...@gmail.com> wrote:
> Hello,
>
> I'm curious as I'm automating my setups with chef, and currently using
> passenger-install-nginx-module --auto --auto-download.
>
> Is the version of nginx installed by this command line hardcoded into
> passenger, in order to match ?

The version is hardcoded. But you can just download the Nginx tarball
yourself and use --nginx-source-dir.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Thibaut Barrère

unread,
Feb 6, 2011, 3:49:57 PM2/6/11
to phusion-...@googlegroups.com
The version is hardcoded. But you can just download the Nginx tarball
yourself and use --nginx-source-dir.

Thanks - I will definitely use that.

Is there currently a way to install the nginx extension without recompiling nginx itself ?

I'm asking as I use a chef recipe that already compiles nginx, before passenger gets installed.

My understanding is that "no, it's not possible, because nginx needs to be recompiled to enable new modules".

Is that so ?

-- Thibaut

 

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.


Hongli Lai

unread,
Feb 6, 2011, 3:51:26 PM2/6/11
to phusion-...@googlegroups.com
On Sun, Feb 6, 2011 at 9:49 PM, Thibaut Barrère
<thibaut...@gmail.com> wrote:
> Is there currently a way to install the nginx extension without recompiling
> nginx itself ?

No, Nginx does not support loadable modules like Apache does.

Thibaut Barrère

unread,
Feb 6, 2011, 3:58:39 PM2/6/11
to phusion-...@googlegroups.com
No, Nginx does not support loadable modules like Apache does.

Thanks for the confirmation!

-- Thibaut

 

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Thibaut Barrère

unread,
Feb 8, 2011, 2:42:47 PM2/8/11
to Phusion Passenger Discussions
In case it helps other here, here's the recipe I came up with for
passenger + nginx on chef:

https://github.com/thbar/cookbooks/blob/master/nginx/recipes/source.rb
(and the rest of the nginx folder).

Basically, it compiles nginx with the passenger module after
installing passenger via gem install.

cheers,

-- Thibaut
Reply all
Reply to author
Forward
0 new messages