I recently installed Nginx on another server and forgot how difficult it was the last time I did it.  You need to make sure you have all the dependencies before you can configure the source.  Here are the steps to get a successful install on CentOS 5 using Nginx 0.7.61.

> yum install pcre
> yum install pcre-devel
> yum install zlib
> yum install zlib-devel
> yum install openssl-devel
> yum install openssl
> wget http://sysoev.ru/nginx/nginx-0.7.61.tar.gz
> tar -xvf nginx-0.7.61.tar.gz
> ./configure
> make
> make install

Nginx should be installed after that.   Then you can edit your config in /usr/local/nginx/conf and start the web server using:

> /usr/local/nginx/sbin/nginx

Tags: ,