Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.0.0 and Third Party Modules Install

April 16, 2011 11:15PM
onur.ozgur.ozkan Wrote:
-------------------------------------------------------
> Hi,
>
> We use ubuntu on laptop and centos on server. So
> we follow the 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.

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.
Subject Author Posted

Nginx 1.0.0 and Third Party Modules Install

onur.ozgur.ozkan April 16, 2011 08:05AM

Re: Nginx 1.0.0 and Third Party Modules Install

Ensiferous April 16, 2011 12:23PM

Re: Nginx 1.0.0 and Third Party Modules Install

onur.ozgur.ozkan April 16, 2011 01:19PM

Re: Nginx 1.0.0 and Third Party Modules Install

Rainer Duffner April 16, 2011 01:26PM

Re: Nginx 1.0.0 and Third Party Modules Install

SplitIce April 16, 2011 01:30PM

Re: Nginx 1.0.0 and Third Party Modules Install

Pascal Nitsche April 16, 2011 01:56PM

Re: Nginx 1.0.0 and Third Party Modules Install

António P. P. Almeida April 16, 2011 06:06PM

Re: Nginx 1.0.0 and Third Party Modules Install

onur.ozgur.ozkan April 16, 2011 01:54PM

Re: Nginx 1.0.0 and Third Party Modules Install

onur.ozgur.ozkan April 16, 2011 02:10PM

Re: Nginx 1.0.0 and Third Party Modules Install

brianmercer April 16, 2011 11:15PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready