Created
August 10, 2017 17:40
-
-
Save YarGnawh/1f2185655678b0b19fe6ce2db15b937a to your computer and use it in GitHub Desktop.
Upgrade PHP 5.6 to PHP 7.0 on Ubuntu Apache
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
sudo apt-get update | |
sudo apt-get install -y software-properties-common | |
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update | |
sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-mcrypt php7.0-mysql php7.0-mbstring php7.0-gd php7.0-curl php7.0-mcrypt | |
sudo a2dismod php5 | |
sudo a2enmod php7.0 | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment