This repository hosts a setup script that simplies the installation of LEMP stack suitable for Debian and Ubuntu environments. It is a fork of https://github.com/aatishnn/lempstack.
Any questions or issues? Feel free to open an issue or suggest new features.
Read more over at the original author's blog: http://linuxdo.blogspot.com/2012/08/optimized-lemp-installer-for.html
- modified to support new Debian and Ubuntu versions (should be mostly version agnostic now)
- updated configuration
- removed unnecessary packages
- changed php-suhosin to php-snuffleupagus
- enabled OPcache
- added IPv6
- added HTTP/2
- added TLS via letsencrypt (installs certbot, automates renewal, adds new certificate at virtual host creation)
- creation of (bigger) dhparam.pem
- added security related headers
Run these commands as root:
wget https://github.com/mdPlusPlus/lempstack/raw/master/lemp-debian.sh
chmod +x lemp-debian.sh
wget https://github.com/mdPlusPlus/lempstack/raw/master/setup-vhost.sh
chmod +x setup-vhost.sh
./lemp-debian.sh
./setup-vhost.sh