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.
Nginx should be installed after that. Then you can edit your config in /usr/local/nginx/conf and start the web server using: