Created
July 21, 2016 19:54
-
-
Save tiaanduplessis/5cd5953f2a1d0fd53cbc29455c7ee677 to your computer and use it in GitHub Desktop.
LAMP Install Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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