Skip to content

Instantly share code, notes, and snippets.

Avatar

MZorzy MZorzy

View GitHub Profile
@MZorzy
MZorzy / nginx_install
Created Nov 30, 2015 — forked from tienrocker/nginx_install
Ubuntu nginx install
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/
@MZorzy
MZorzy / build_nginx.sh
Created Nov 30, 2015 — forked from MattWilcox/build_nginx.sh
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
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/