View nginx_install
#Remove previous | |
/usr/sbin/update-rc.d -f nginx remove | |
service nginx stop && rm -f -R /usr/local/nginx && rm -f /usr/local/sbin/nginx && apt-get remove nginx && rm -Rf /etc/init/nginx | |
#Create downloads store folder | |
apt-get update | |
apt-get upgrade | |
cd ~ && mkdir -p downloads && mkdir -p /var/www/html && cd ~/downloads | |
#Replace by the latest version number found on http://nginx.org/ |
View build_nginx.sh
#!/usr/bin/env bash | |
# names of latest versions of each package | |
export VERSION_PCRE=pcre-8.38 | |
export VERSION_OPENSSL=openssl-1.0.2d | |
export VERSION_NGINX=nginx-1.9.7 | |
# URLs to the source directories | |
export SOURCE_OPENSSL=https://www.openssl.org/source/ | |
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |