Created
September 9, 2016 19:19
-
-
Save Sam-R/adf942c0f0625464d5bb43041359c8c7 to your computer and use it in GitHub Desktop.
Install Apache, MySQL, PHP7 on Ubuntu 16.04 based systems
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/bash | |
# ----------------------------------------------- # | |
# Install an AMP environment on Ubuntu 16.04 | |
# ----------------------------------------------- # | |
# Update the system's repositories | |
sudo apt-get update | |
# Install apache2, mysql-server and PHP5 | |
sudo apt-get install apache2 mysql-server php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7 | |
# Enable PHPmyAdmin by default | |
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/phpmyadmin.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment