Howto install Nginx from source

Nginx is a very fast ,powerful asynchronous web server that can be considered as a good replacement for the Apache HTTPD web server. Below are the steps required to get Nginx installed on your system. It is preffered to install Nginx from source as we get the latest stable version of this project as compared to installing from your operating systems package repository as this may be sometimes outdated

Get the latest stable release from http://nginx.net

At the time of writing i downloaded  http://sysoev.ru/nginx/nginx-0.6.32.tar.gz

I installed the following development libraries using apt-get

apt-get install libgcrypt11-dev libpcre3-dev libssl-dev

tar -xvzf nginx-0.6.32.tar.gz

cd nginx-0.6.32

mkdir /usr/local/nginx

./configure –prefix=/usr/local/nginx –user=nobody –group=nogroup –with-http_ssl_module –with-http_realip_module –with-http_addition_module –with-http_sub_module –with-http_gzip_static_module –with-http_stub_status_module –without-mail_pop3_module –without-mail_imap_module –without-mail_smtp_module –with-md5=/usr/lib

make

make install

Thats it we now have to configure nginx and start the daemon to start serving web

Posted under hosting, nginx

This post was written by Anoop Alias on August 13, 2008

Tags: ,

Leave a Comment

Name (required)

Email (required)

Website

Comments

More Blog Post