Welcome! Log In Create A New Profile

Advanced

Re: How to always have the latest nginx version in Ubuntu/Debian

mike
March 23, 2009 05:31PM
What does this do?

# ensure that there is only one -O in CFLAGS and that it is -O2

On Mon, Mar 23, 2009 at 1:42 PM, Mark Alan <varia@e-healthexpert.org> wrote:
> I am attaching the procedure that we use to to always have the latest nginx
> version in Ubuntu/Debian.
>
> M.
>
> ## -- start-of-procedure
>
> # Install the current Nginx (Ubuntu 8.10 = Nginx/0.6.34 @ backports)
> sudo aptitude -R install nginx= ; # the ending = means install & hold to
>  prevent automatic upgrades
>
> # install needed ubuntu/debian compiling tools
> sudo aptitude -R install build-essential libpcre3 libpcre3-dev libpcrecpp0
> libssl-dev zlib1g-dev
>
> # build & replace by the latest "debianized" Nginx 0.7.44
> test -x $HOME/src/ || mkdir -p $HOME/src/ && cd $HOME/src/
> # nginx's latest version: http://sysoev.ru/nginx/download.html
> wget http://sysoev.ru/nginx/nginx-0.7.44.tar.gz
> tar zxvf nginx-0.7.44.tar.gz
>
> cd nginx-0.7.44
> ./configure --prefix=/etc/nginx \
>        --sbin-path=/usr/sbin/nginx \
>        --conf-path=/etc/nginx/nginx.conf \
>        --error-log-path=/var/log/nginx/error.log \
>        --pid-path=/var/run/nginx.pid \
>        --lock-path=/var/lock/nginx.lock \
>        --user=www-data \
>        --group=www-data \
>        --http-log-path=/var/log/nginx/access.log \
>        --http-client-body-temp-path=/var/lib/nginx/body \
>        --http-proxy-temp-path=/var/lib/nginx/proxy \
>        --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
>        --with-cc-opt=-O2 \
>        --with-http_gzip_static_module \
>        --with-http_ssl_module
>
> # ensure that there is only one -O in CFLAGS and that it is -O2
> sed -i '/CFLAGS/s/ \-O //g' objs/Makefile
>
> make
>
> # debian policy: use 'install' instead of 'cp' or 'mv'
> sudo /usr/bin/install -s -m 755 -o root objs/nginx /usr/sbin/nginx.new &&
> sudo mv /usr/sbin/nginx /usr/sbin/nginx.old-"$(date +%Y%m%d-%H%M-%S)" &&
> sudo mv -v /usr/sbin/nginx.new /usr/sbin/nginx
>
> sudo kill -15 $(pidof nginx) ; sudo /etc/init.d/nginx restart
>
> ## -- end-of-procedure
>
>
Subject Author Posted

How to always have the latest nginx version in Ubuntu/Debian

Mark Alan March 23, 2009 05:02PM

Re: How to always have the latest nginx version in Ubuntu/Debian

mike March 23, 2009 05:31PM

Bug in nginx 0.7.xx ./configure procedure

Mark Alan March 23, 2009 06:16PM

Re: Bug in nginx 0.7.xx ./configure procedure

Igor Sysoev March 24, 2009 02:13AM

Re: Bug in nginx 0.7.xx ./configure procedure

Michael Shadle March 24, 2009 02:19AM

Re: Bug in nginx 0.7.xx ./configure procedure

Igor Sysoev March 24, 2009 02:34AM

Re: Bug in nginx 0.7.xx ./configure procedure

Mark Alan March 24, 2009 05:26AM

Re: Bug in nginx 0.7.xx ./configure procedure

Igor Sysoev March 24, 2009 07:24AM

Re: Bug in nginx 0.7.xx ./configure procedure

Mark Alan March 24, 2009 10:08AM

Re: How to always have the latest nginx version in Ubuntu/Debian

Merlin March 23, 2009 06:06PM

Re: How to always have the latest nginx version in Ubuntu/Debian

mike March 23, 2009 06:17PM

Re: How to always have the latest nginx version in Ubuntu/Debian

Mark Alan March 23, 2009 07:34PM

Re: How to always have the latest nginx version in Ubuntu/Debian

mike March 23, 2009 07:50PM

Re: How to always have the latest nginx version in Ubuntu/Debian

Igor Sysoev March 24, 2009 02:13AM

Re: How to always have the latest nginx version in Ubuntu/Debian

Michael Shadle March 24, 2009 02:23AM

Re: How to always have the latest nginx version in Ubuntu/Debian

Igor Sysoev March 24, 2009 02:27AM

Re: How to always have the latest nginx version in Ubuntu/Debian

Igor Sysoev March 24, 2009 02:34AM

Re: How to always have the latest nginx version in Ubuntu/Debian

Mark Alan March 23, 2009 07:34PM

Re: How to always have the latest nginx version in Ubuntu/Debian

Merlin March 23, 2009 08:46PM

Re: How to always have the latest nginx version in Ubuntu/Debian

Mark Alan March 24, 2009 06:12PM

Re: How to always have the latest nginx version in Ubuntu/Debian

Merlin March 24, 2009 09:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready