Skip to content

Instantly share code, notes, and snippets.

@tiaanduplessis
Created July 21, 2016 19:54
Show Gist options
  • Save tiaanduplessis/5cd5953f2a1d0fd53cbc29455c7ee677 to your computer and use it in GitHub Desktop.
Save tiaanduplessis/5cd5953f2a1d0fd53cbc29455c7ee677 to your computer and use it in GitHub Desktop.
LAMP Install Ubuntu 16.04
#!/bin/bash
sudo apt-get update
# Install Apache
sudo apt-get install apache2
# Allow incoming traffic for this profile
sudo ufw allow in "Apache Full"
# Install mySQL
sudo apt-get install mysql-server
# Remove dangerous defaults and lock down access little bit
sudo mysql_secure_installation
# Install PHP
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
# Restart the server
sudo systemctl restart apache2
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment