The method to upgrade the php version installed by yum is: first set the yum source; then use the command "yum list | grep php" to view; then execute the command "yum -y install php56w" to install a higher version of php. Can.
CentOS7.2yum installation php default version is 5.4, you can upgrade to install a higher version through yum
Setting yum source
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
View
yum list |grep php
Install a higher version of php
yum -y install php56w
For more related knowledge, please visitPHP Chinese website!
The above is the detailed content of How to upgrade the php version installed by default yum. For more information, please follow other related articles on the PHP Chinese website!