Skip to content

Instantly share code, notes, and snippets.

@fititnt
Created March 27, 2016 01:16
Show Gist options
  • Save fititnt/b8466d467e10eae79d9b to your computer and use it in GitHub Desktop.
Save fititnt/b8466d467e10eae79d9b to your computer and use it in GitHub Desktop.
Upgrade from PHP 5.x to PHP 7.0 on Centos with Webtatic.com packages
# replace PHP 5.6 with PHP 7.0, with only one command, yum swap
yum swap -- remove php56w-cli php56w-fpm php56w-xml php56w-pdo php56w-mysql php56w-mcrypt php56w-mbstring php56w-gd php56w-common php56w-mysql php56w-bcmath php56w-opcache -- install php70w-cli php70w-fpm php70w-xml php70w-pdo php70w-mysql php70w-mcrypt php70w-mbstring php70w-gd php70w-common php70w-mysql php70w-bcmath php70w-opcache
# If you are using PHP-FPM, need start it again
systemctl start php-fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment