Announcing:

LessMoney Conference will be June 7th in Tampa! Register today and make us smile super big!

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.

3 Comments

baldrailers
baldrailers said on April 20, 2009

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!

Matt MacDougall
Matt MacDougall said on February 05, 2010

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!

Paul
Paul said on November 01, 2010

You may also need to adjust iptables before nginx will actually be able to accept connections from external machines.

Leave a Comment

About Steven
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.

You Should...

Follow Steven on Twitter
Friend Steven on Facebook
Subscribe
LessEverything Copyright 2011 LessEverything.com
We don't like footers, they're kinda boring