[心得] PHP7.1升級PHP7.3

前言:

這兩天才想到,好久沒有升級網站系統了,原來是之前把網站系統的更新提示給關掉...
看一下之前寫的更新紀錄,原來上次更新是在2018年底。

網站的WordPress版本是 4.x 目前最新的版本為 5.4.2
版號差蠻多的,太久沒更新會影響網站的安全性,所以要進行網站系統更新

要怎麼更新WordPress?
請參考這篇: [教學] 手動更新WordPress
做完更新後,登入WordPress後台,就看到系統提示PHP版本太舊!
這個問題之前也發生過,在這篇可以看到當時的處理流程[心得] PHP5.X升級PHP7

以下就是PHP升級的流程:

# 作業系統 CentOS 6.8 PHP7.1(欲升級為7.3)
# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi-php73 install php
# yum --enablerepo=remi-php73 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-fpm
# service httpd restart
#以下非必要
# yum update

打完收工!


Reference: