Installing nginx on RHEL4 x86_64

Want to use the new kid on the block, nginx, as a server on your old RHEL4 server? Well, guess what, it’s now available in EPEL so it’s incredibly easy.

First add EPEL as a repository on your system. They provide a package to do that:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

now install nginx. You’ll need to specify the testing repo. I use yum but the same thing will work with up2date

yum install nginx --enablerepo=epel-testing

Done. Now go edit /etc/nginx/nginx.conf to use an IP or port that doesn’t conflict with anything, and:

service nginx start

UPDATE: Updated EPEL RPM link with new version.

Tags: , ,

3 Responses to “Installing nginx on RHEL4 x86_64”

  1. Sho Fukamachi Online » Blog Archive » Installing couchdb on RHEL4 Says:

    [...] Solve dependencies. You’ll need EPEL yum install icu [...]

  2. bob Says:

    Error getting repository data for epel-testing, repository not found

  3. Sho Says:

    Error getting repository data for epel-testing, repository not found

    Well thanks for that useful comment, “bob”. What are you trying to say? EPEL doesn’t exist? It was all a crazy dream?

    Jesus. I used EPEL only an hour or so ago. Check your DNS or something.

    In fact thanks for reminding me to update nginx:

    $ yum install nginx --enablerepo=epel-testing
    Setting up Install Process
    Setting up repositories
    epel                      100% |=========================| 1.1 kB    00:00     
    utterramblings            100% |=========================|  951 B    00:00     
    epel-testing              100% |=========================| 1.1 kB    00:00     
    Reading repository metadata in from local files
    primary.xml.gz            100% |=========================|  54 kB    00:00     
    epel-testi: ################################################## 209/209
    Added 209 new packages, deleted 0 old in 0.42 seconds
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for nginx to pack into transaction set.
    nginx-0.5.35-1.el4.x86_64 100% |=========================| 8.1 kB    00:00     
    ---> Package nginx.x86_64 0:0.5.35-1.el4 set to be updated
    --> Running transaction check
     
    Dependencies Resolved
     
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Updating:
     nginx                   x86_64     0.5.35-1.el4     epel-testing      285 k
     
    Transaction Summary
    =============================================================================
    Install      0 Package(s)         
    Update       1 Package(s)         
    Remove       0 Package(s)         
    Total download size: 285 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): nginx-0.5.35-1.el4 100% |=========================| 285 kB    00:00     
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating  : nginx                        ######################### [1/2] 
      Cleanup   : nginx                        ######################### [2/2]
     
    Updated: nginx.x86_64 0:0.5.35-1.el4
    Complete!

    Gee, guess epel-testing does exist after all!

Leave a Reply