Skip to content

Instantly share code, notes, and snippets.

@donaldsteele
Created October 2, 2017 03:53
Show Gist options
  • Save donaldsteele/1479b1f16f63d8a6cb19ec50d57d6ea6 to your computer and use it in GitHub Desktop.
Save donaldsteele/1479b1f16f63d8a6cb19ec50d57d6ea6 to your computer and use it in GitHub Desktop.
Linux eNginx Mysql Php (LEMP) auto install script for ubuntu 16.04
#!/bin/sh
apt-get update && apt-get upgrade
systemctl stop apache2
apt-get remove --purge apache2
apt-get install -y nginx
systemctl start nginx
systemctl enable nginx
systemctl status nginx
apt-get install -y php-fpm php-mysql
apt-get install -y mysql-server
mysql_secure_installation
systemctl start mysql
systemctl enable mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment