Skip to content

Instantly share code, notes, and snippets.

@glmdev
Last active March 29, 2017 22:06
Show Gist options
  • Save glmdev/513074e961a0462a4aa2ac4e822f7dcc to your computer and use it in GitHub Desktop.
Save glmdev/513074e961a0462a4aa2ac4e822f7dcc to your computer and use it in GitHub Desktop.
#!/bin/sh
# For setting up a basic LAMP server on Ubuntu.
apt install apache2
a2enmod rewrite
nano /etc/apache2/apache2.conf
apt install mysql-server -y
mysql_secure_installation
add-apt-repository ppa:ondrej/php -y
apt install php7.0 php7.0-fpm php7.0-xml php7.0-json php7.0-gd php7.0-mcrypt php7.0-mbstring php7.0-mysql php7.0-opcache -y
phpenmod xml
phpenmod json
phpenmod gd
phpenmod mcrypt
phpenmod mbstring
phpenmod mysql
apt install libapache2-mod-php7.0 -y
a2enmod php7.0
apt install git composer phpmyadmin -y
service php7.0-fpm restart
service mysql restart
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment