Last active
November 20, 2015 13:55
-
-
Save arielelkin/0c974b2d81f9f4e5f4f5 to your computer and use it in GitHub Desktop.
Compile nginx standalone without root access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile nginx standalone without root access | |
mkdir ~/installed | |
mkdir ~/installed/nginx | |
mkdir ~/src | |
cd ~/src | |
wasup wasup | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment