Installing nginx 0.7.65 on Mac OS X 10.6.2 Snow LeopardEdit

Note: these notes show the use of wget and gpg which are not standard parts of Mac OS X. See "Installing wget 1.12 on Mac OS X 10.6.2 Snow Leopard" and "Installing GPG 1.4.10 on Mac OS X 10.6.2 Snow Leopard" for details.


PCRE is a prerequisite of nginx so must be installed first:

$ wget \
$ gpg --recv-keys --keyserver FB0F43D8 # first time only
$ gpg --verify pcre-8.02.tar.bz2.sig pcre-8.02.tar.bz2
$ tar xjvf pcre-8.02.tar.bz2
$ cd pcre-8.02
$ ./configure
$ make
$ make check
$ sudo make install
$ cd ..

nginx and the nginx upload module

$ wget \ \
$ tar xzvf nginx_upload_module-2.0.12.tar.gz
$ gpg --recv-keys --keyserver A524C53E # first time only
$ gpg --verify nginx-0.7.65.tar.gz.asc nginx-0.7.65.tar.gz
$ tar xzvf nginx-0.7.65.tar.gz
$ cd nginx-0.7.65
$ ./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=../nginx_upload_module-2.0.12
$ make
$ sudo make install
$ sudo chmod 777 /usr/local/nginx/logs

The last line is required because on my development machine I run nginx as an unprivileged user.