Skip to content

Instantly share code, notes, and snippets.

@Sam-R
Last active September 9, 2016 19:15
Show Gist options
  • Save Sam-R/66cc57ba9c6d97daafc9 to your computer and use it in GitHub Desktop.
Save Sam-R/66cc57ba9c6d97daafc9 to your computer and use it in GitHub Desktop.
Install Apache, MySQL and PHP5 on a Debian/Ubuntu based machine
#!/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