Skip to content

Instantly share code, notes, and snippets.

@jmmeacham
Created September 28, 2019 14:36
Show Gist options
  • Save jmmeacham/a30ae19b0ef9d37f1bf741db3cc3e59a to your computer and use it in GitHub Desktop.
Save jmmeacham/a30ae19b0ef9d37f1bf741db3cc3e59a to your computer and use it in GitHub Desktop.
#!/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