Skip to content

Instantly share code, notes, and snippets.

@the-commits
Last active December 8, 2017 12:38
Show Gist options
  • Select an option

  • Save the-commits/2d3d0b380b77762adc3c35f3fbb6ac49 to your computer and use it in GitHub Desktop.

Select an option

Save the-commits/2d3d0b380b77762adc3c35f3fbb6ac49 to your computer and use it in GitHub Desktop.
A script I use to install LEMP on my vagrant (ubuntu/xenial64) from scratch including installations of package
#!/bin/sh
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev
wget -q http://nginx.org/download/nginx-1.11.3.tar.gz
tar -zxvf nginx-1.11.3.tar.gz
rm nginx-1.11.3.tar.gz
cd nginx-1.11.3
./configure \
--sbin-path=/etc/nginx/nginx \
--conf-path=/etc/nginx/conf/nginx.conf \
--pid-path=/etc/nginx/pid/nginx.pid \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/access.log \
--with-pcre \
--with-http_ssl_module
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment