# Nginx 1.0.0 and Third Party Modules Install

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825>\
**Category:** NGINX\
**Created:** [April 16, 2011, 2:05pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825 "2011-04-16T14:05:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 16, 2011, 2:05pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/1 "2011-04-16T14:05:47Z")

</div>

Hi EngineX Users,

Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server  
with Spawn. We solved most of migration problem from Apache to Nginx. We  
couldn’t install third party modules on Nginx. We followed the wiki,  
forum and google unfortunately we can’t solve.

1. Does something change over installing native and third party modules  
from 8.X to 1.0.x!
2. Does nginx 1.0.0 support backward compatibility for third party  
modules?
3. After install nginx 1.0.0 how can i install third party modules on  
nginx?

We use this code for install nginx.

sudo -s  
nginx=stable # use nginx=development for latest development version  
add-apt-repository ppa:nginx/$nginx  
apt-get update  
apt-get install nginx

Best regards.

Posted at Nginx Forum:

> **[Nginx 1.0.0 and Third Party Modules Install](https://forum.nginx.org/read.php?2,191693,191693#msg-191693)**
>
> Hi EngineX Users, Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server with Spawn. We solved most of migration problem from Apache to Nginx. We couldn't install third party modules on Nginx. We followed the wiki, forum and google...

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 6:23pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/2 "2011-04-16T18:23:38Z")

</div>

Hi.

There was an API change but I can’t remember when it was. Regardless it  
had only minor effect and pretty much all the modules should work fine  
regardless. I think what has you confused is how to install 3rd party  
modules. Nginx only supports compiling in modules statically, which  
means you have to enable them during compile time. You can’t install  
Nginx and then later add in modules. (without recompiling)

Thankfully, adding 3rd party modules during compile is pretty easy as  
you just need -add-module=/path/to/module/source

Posted at Nginx Forum:

> **[Re: Nginx 1.0.0 and Third Party Modules Install](https://forum.nginx.org/read.php?2,191693,191721#msg-191721)**
>
> Hi EngineX Users, Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server with Spawn. We solved most of migration problem from Apache to Nginx. We couldn't install third party modules on Nginx. We followed the wiki, forum and google...

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 7:20pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/3 "2011-04-16T19:20:23Z")

</div>

Hi,

Thank you very much for your reply. Nearly two days we read your blog  
especially evil framework is very interesting.

We understand that we can’t install modules after installed nginx. We  
have to configure modules when we are compiling nginx. So we can’t use  
apt-get install nginx if we wanna use third modules etc. First we  
configure and then make install nginx. :S Are we right? It is really  
strange.

Thanks.

Posted at Nginx Forum:

> **[Re: Nginx 1.0.0 and Third Party Modules Install](https://forum.nginx.org/read.php?2,191693,191727#msg-191727)**
>
> Hi EngineX Users, Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server with Spawn. We solved most of migration problem from Apache to Nginx. We couldn't install third party modules on Nginx. We followed the wiki, forum and google...

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 7:24pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/4 "2011-04-16T19:24:42Z")

</div>

Am 16.04.2011 um 19:19 schrieb onur.ozgur.ozkan:

> Hi,
> 
> Thank you very much for your reply. Nearly two days we read your blog  
> especially evil framework is very interesting.
> 
> We understand that we can’t install modules after installed nginx. We  
> have to configure modules when we are compiling nginx. So we can’t use  
> apt-get install nginx if we wanna use third modules etc. First we  
> configure and then make install nginx. :S Are we right? It is really  
> strange.

Hardly.  
Only, if all you’ve ever used are binary-packages.

That said, NGINX is certainly not ideally suited for platforms where  
it’s difficult to rebuild a package with custom or 3rd-party patches.

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 7:29pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/5 "2011-04-16T19:29:01Z")

</div>

I dont know why you would use the debian version of nginx anyway… its  
years out of date.

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 7:54pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/6 "2011-04-16T19:54:55Z")

</div>

Hi,

We use ubuntu on laptop and centos on server. So we follow the  
[http://wiki.nginx.org/Install](http://wiki.nginx.org/Install) for PPA. How can we know that it is out  
of date especially it installed version 1.0.0. 🙂

Anyway we understand that there is no way to add modules without  
./configure and make install again.

Thanks.

Posted at Nginx Forum:

> **[Re: Nginx 1.0.0 and Third Party Modules Install](https://forum.nginx.org/read.php?2,191693,191740#msg-191740)**
>
> Hi EngineX Users, Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server with Spawn. We solved most of migration problem from Apache to Nginx. We couldn't install third party modules on Nginx. We followed the wiki, forum and google...

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 8:10pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/7 "2011-04-16T20:10:57Z")

</div>

I check DotDeb. It is really good but i need upload module.  
[http://www.grid.net.ru/nginx/upload.en.html](http://www.grid.net.ru/nginx/upload.en.html) Dotdeb isn’t include upload  
module.  
May be we write our rest service with RDS JSON modules in the future. I  
think we should install nginx manually.

Thank you very much for information.

Posted at Nginx Forum:

> **[Re: Nginx 1.0.0 and Third Party Modules Install](https://forum.nginx.org/read.php?2,191693,191744#msg-191744)**
>
> Hi EngineX Users, Our company is newbie at Nginx. We installed Nginx 1.0.0 our demo server with Spawn. We solved most of migration problem from Apache to Nginx. We couldn't install third party modules on Nginx. We followed the wiki, forum and google...

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 16, 2011, 7:56pm UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/8 "2011-04-16T19:56:09Z")

</div>

I’m using dotdeb now to come over this. [dotdeb.org](http://dotdeb.org) uses the latest  
stable version of nginx to build 3 package versions: light, extras and  
full

In these versions there are some modules already compiled in.

You may want to check that out. Also dotdeb offers php5.3 packages and  
so on for debian.

[http://dotdeb.org](http://dotdeb.org)

Am 16.04.2011 19:27, schrieb SplitIce:

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 17, 2011, 5:16am UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/9 "2011-04-17T05:16:52Z")

</div>

## onur.ozgur.ozkan Wrote:

> Thanks.

I should write a complete blog post about modifying a debian/ubuntu  
package to add modules. I do the work in a virtualbox virtual machine  
so I don’t clutter up my computers with all the dev packages. Basically  
this:

make a working directory and cd to it  
apt-get source nginx (this will get the 1.0.0 from ppa:nginx/stable if  
you have it in your apt sources)  
apt-get build-dep nginx  
cd to the nginx-[version] directory  
download and untar the new modules to the module directory (debian  
prefers that you make a patch and put it in debian/patches, but you can  
just put them in place manually for now)  
modify debian/rules and add the appropriate line to the configure  
command (you can mostly copy the line there for the upstream-fair  
module)  
run dch to update the changelog with a new version  
run debuild -us -uc

and voila you have a new deb that you can dpkg -i. If you’re on Ubuntu  
and you intend to keep doing it and distributing it to multiple  
machines, I highly recommend getting a launchpad ppa. There’s some  
extra one time work registering a gpg key with launchpad and on your  
virtual machine and the debuild command is a little different, and you  
dput it up to launchpad, but it’s still quick, and then you can just  
apt-get full-upgrade to pull your new version to all your dev/production  
servers.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,191693,191805#msg-191805](http://forum.nginx.org/read.php?2,191693,191805#msg-191805)

---

<div class="post-metadata">

**Author:** ![onur.ozgur.ozkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/edb3f5/32.png) [@onur.ozgur.ozkan](https://www.ruby-forum.com/u/onur.ozgur.ozkan)\
**Post date:** [April 17, 2011, 12:05am UTC](https://www.ruby-forum.com/t/nginx-1-0-0-and-third-party-modules-install/205825/10 "2011-04-17T00:05:27Z")

</div>

On 16 Abr 2011 18h27 WEST, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I dont know why you would use the debian version of nginx  
> anyway… its years out of date.

Wrong: in the unstable distribution it’s 0.8.54, hardly years out of  
date.

There are plenty of builds out there of up to date devel releases of  
nginx for debian. Much more than for Ubuntu.

Remember than in debian there’s no supposedly “funny” cleverly devised  
names for the releases. There are stable, testing and unstable  
releases. With apt pinning you can mix and match packages from several  
releases. For example building nginx with openssl-1.0.0d.

Please don’t spread misinformation.

Thank you,  
— appa
