Last active
March 29, 2017 22:06
-
-
Save glmdev/513074e961a0462a4aa2ac4e822f7dcc to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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