Skip to content

Instantly share code, notes, and snippets.

@simonw
Created April 9, 2009 13:58
Show Gist options
  • Save simonw/92481 to your computer and use it in GitHub Desktop.
Save simonw/92481 to your computer and use it in GitHub Desktop.

Revisions

  1. simonw created this gist Apr 9, 2009.
    22 changes: 22 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # Compile nginx standalone without root access
    mkdir ~/installed
    mkdir ~/installed/nginx
    mkdir ~/src
    cd ~/src

    # PCRE dependency - we'll compile against this statically
    wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz
    tar -xzvf pcre-7.8.tar.gz

    # Grab nginx
    wget http://sysoev.ru/nginx/nginx-0.7.50.tar.gz
    tar -xzvf nginx-0.7.50.tar.gz

    # Compile it
    cd nginx-0.7.50
    ./configure --prefix=/home/simon/installed/nginx --with-pcre=/home/simon/src/pcre-7.8
    make
    make install

    # Edit config to not bind to port 80 (as we aren't root)
    vi ~/installed/nginx/conf/nginx.conf