Setting up nginx on redhat (centos)
written by Steven on June 22, 2007
1. sudo yum install pcre*
2. Download nginx tarball
3. tar zxvf nginx-0.5.26.tar.gz
4. cd nginx-0.5.26
5.
./configure --sbin-path=/sbin/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1
6. make
7. sudo make install
Done. Now, go into /usr/local/nginx and set it up.
Learn how LessEverything built their consultancy to over $1,000,000 annual revenue at LessMoney Conference, June 7th in Tampa Florida. Each attendee will get early access to our upcoming ebook as well.
Leave a Comment
About Steven
Popular Articles
Subscribe

Steven Bristol has written code for the past 20 years. He like green vegetables and kittens, oh and butterflies too. He loves to throw ninja stars at his enemies.

3 Comments
Hi,
Nice write-up. I’ve installed nginx using the new mod_rails. But tracing the nginx error logs i’ve noticed a lot of error with the Helpers. Is this the solution for it?
thanks!
Found this config line when searching for nginx on redhat es5. I ended up also having to install pcre-devel, openssl-devel and zlib-devel for nginx to find the proper libraries. I was able to successfully build nginx-0.7.65. Thanks!
You may also need to adjust iptables before nginx will actually be able to accept connections from external machines.