Created
March 22, 2017 19:22
-
-
Save dclarke-modus/0fd4d8929ff762debdbe1b3fcadee27c 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
echo "--- Add PHP Apt Repository ---" | |
sudo add-apt-repository ppa:ondrej/php | |
echo "--- Add Ubuntu (for MySQL) Apt Repository ---" | |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' | |
echo "-- Update keys --" | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192 | |
# sudo apt-key update | |
echo "--- Update Apt Repositories ---" | |
sudo apt-get update | |
echo "--- Install Apt Packages ---" | |
export DEBIAN_FRONTEND=noninteractive | |
sudo -E apt-get install -y nginx php5.6-fpm php5.6 php5.6-xml php5.6-mcrypt php5.6-curl php5.6-mysql php5.6-soap php5.6-zip php5.6-gd php5.6-mbstring aspell aspell-en ghostscript openjdk-8-jre-headless mysql-client-5.6 mysql-server-5.6 postfix mailutils php5-dev | |
echo "-- Setup XDebug --" | |
tar -xvzf xdebug-2.5.1.tgz | |
sudo sh -c 'cd /xdebug-2.5.1 && phpize && ./configure && make && cp modules/xdebug.so /usr/lib/php/20131226 ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment