Skip to content

Instantly share code, notes, and snippets.

@ArgonQQ
Last active June 8, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArgonQQ/dc22746eaf24b50b8b9323e4c2667870 to your computer and use it in GitHub Desktop.
Save ArgonQQ/dc22746eaf24b50b8b9323e4c2667870 to your computer and use it in GitHub Desktop.
# Switch User
su -
#General informations
printf "\nHostname: \n" && hostname && ip a s |grep "inet "
#Install Packages
apt install -y bash-completion vim curl wget git
#LAMP
apt install -y apache2 mysql-server php5-mysql php5 php5-curl
#Apache Config
a2dismod mpm_event && a2enmod mpm_prefork
#MySQL Config
mysql_install_db && mysql_secure_installation
#Restart LAMP
service apache2 restart && service mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment