Last active
August 15, 2016 22:13
-
-
Save aaronheath/70445df9fbb5b33227383263bae00ab8 to your computer and use it in GitHub Desktop.
Personal php5.6 upgrade script
This file contains 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 | |
## Upgrades Ubuntu 14.04 php5 package to php5.6 | |
## Also includes several common php5.6 packages that I use | |
sudo apt-get remove -y php5 | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install -y php5.6 php5.6-mcrypt \ | |
php5.6-mbstring php5.6-dom php5.6-zip php5.6-cli php5.6-mysql php5.6-sqlite3 php5.6-curl libapache2-mod-php5.6 | |
sudo a2dismod php5 | |
sudo a2enmod php5.6 | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment