Last active
September 9, 2016 19:15
-
-
Save Sam-R/66cc57ba9c6d97daafc9 to your computer and use it in GitHub Desktop.
Install Apache, MySQL and PHP5 on a Debian/Ubuntu based machine
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 14.04 | |
# ----------------------------------------------- # | |
# Update the system's repositories | |
sudo apt-get update | |
# Install apache2, mysql-server and PHP5 | |
sudo apt-get install apache2 mysql-server libapache2-mod-auth-mysql php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-cli php5-gd php5-curl php5-imagick mcrypt phpmyadmin | |
# 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