In order to update to the recommended php version for wordpress,i update the original php 5.4 to php 7.2.
- check the list of installable php versions in yum.
# yum provides php
- To start upgrading the PHP update source, and remove the old php.
# rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm