Skip to content

Instantly share code, notes, and snippets.

@cinco
Forked from tiaanduplessis/LAMPInstall.sh
Created July 26, 2018 08:07
Show Gist options
  • Save cinco/cd582dab1b908257b08d617ff4a17766 to your computer and use it in GitHub Desktop.
Save cinco/cd582dab1b908257b08d617ff4a17766 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