I got a notify from my WordPress dashboard today, it said “WordPress has detected that your site is running on an insecure version of PHP.”
I tried to update the php using their tutorial link, but got the following error:
Well. I have to update the system using the ssh.
-
-
- Login your root account using ssh or other tools.
- Update the php sources;
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
- Delete the old php files:
yum remove php-common -y
- Install the new php version:
yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring
- Check your systerm version:
php -v
- Reboot your system
reboot
That’s it.
-