Last active
April 24, 2019 03:05
-
-
Save frankhu-2021/16009b1ea7d0ac2fe9202d51379ebe4e to your computer and use it in GitHub Desktop.
Update PHP version for Ubuntu Machines with Apache2
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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.2 | |
sudo apt-get install php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-mysql php7.2-mbstring php7.2-mcrypt php7.2-zip php7.2-fpm | |
sudo a2dismod <old-php-version> | |
sudo a2enmod php7.2 | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment