Created
September 28, 2019 14:36
-
-
Save jmmeacham/a30ae19b0ef9d37f1bf741db3cc3e59a to your computer and use it in GitHub Desktop.
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 | |
# Fix packages | |
sudo rm -rf /var/lib/apt/lists/* | |
sudo apt-get update | |
apt-get clean | |
apt-get update | |
#install apache2 | |
apt install apache2 | |
#install php | |
apt install php | |
#install mysql | |
sudo apt install mysql-server | |
#verify mysql installation and credentials | |
sudo mysql_secure_installation | |
#Would you like to install password plugin | |
y | |
# How strong of a password policy? 2 is the highest | |
2 | |
# Put in your password | |
toor | |
# This is what your password is ranked, would you like to keep it? | |
y | |
#Remove anonymous users? | |
y | |
#Disallow root login remotely? | |
y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment