目次
WordPress のサイトヘルスで更新を推奨されました
先日公開された WordPress を 5.5 に更新してから、サイトヘルスの画面にいくつか更新が推奨されるようになりました。
WordPress 5.5 から PHP の最低推奨バージョンが 7.4 以上になっていたため、7.3 でも古いと言われる始末。この環境作ったのはブログの履歴をみると昨年1月だったので、1年版くらい前ですか。当時は7.4はまだ早すぎるという判断をしていた気がしますが、現状ではこれが最低ラインになるくらいに開発が進んでいるわけですね。
せっかくなので久々にサーバの環境を少しアップデートしてみました。
PHP の入れ替え作業
ほぼターミナルに表示された内容のコピペですが、こんな感じで作業。
現在インストールされているパッケージの確認
# yum list installed php*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.cat.net
* epel: ftp.iij.ad.jp
* extras: ty1.mirror.newmediaexpress.com
* remi-safe: ftp.riken.jp
* updates: ty1.mirror.newmediaexpress.com
Installed Packages
php.x86_64 7.3.17-1.el7.remi @remi-php73
php-bcmath.x86_64 7.3.17-1.el7.remi @remi-php73
php-cli.x86_64 7.3.17-1.el7.remi @remi-php73
php-common.x86_64 7.3.17-1.el7.remi @remi-php73
php-devel.x86_64 7.3.17-1.el7.remi @remi-php73
php-fedora-autoloader.noarch 1.0.1-2.el7 @epel
php-fpm.x86_64 7.3.17-1.el7.remi @remi-php73
php-gd.x86_64 7.3.17-1.el7.remi @remi-php73
php-json.x86_64 7.3.17-1.el7.remi @remi-php73
php-mbstring.x86_64 7.3.17-1.el7.remi @remi-php73
php-mysqlnd.x86_64 7.3.17-1.el7.remi @remi-php73
php-opcache.x86_64 7.3.17-1.el7.remi @remi-php73
php-pdo.x86_64 7.3.17-1.el7.remi @remi-php73
php-pear.noarch 1:1.10.12-1.el7.remi @remi-php73
php-pecl-apcu.x86_64 5.1.18-1.el7.remi.7.3 @remi-php73
php-pecl-imagick.x86_64 3.4.4-10.el7.remi.7.3 @remi-php73
php-pecl-mcrypt.x86_64 1.0.3-1.el7.remi.7.3 @remi-php73
php-pecl-zip.x86_64 1.18.2-1.el7.remi.7.3 @remi-php73
php-php-gettext.noarch 1.0.12-1.el7 @epel
php-process.x86_64 7.3.17-1.el7.remi @remi-php73
php-snmp.x86_64 7.3.17-1.el7.remi @remi-php73
php-tcpdf.noarch 6.2.26-1.el7 @epel
php-tcpdf-dejavu-sans-fonts.noarch 6.2.26-1.el7 @epel
php-tidy.x86_64 7.3.17-1.el7.remi @remi-php73
php-xml.x86_64 7.3.17-1.el7.remi @remi-php73
phpMyAdmin.noarch 4.4.15.10-4.el7 @epel
php関連のパッケージを削除
# yum remove php*
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-bcmath.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-cli.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-common.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-devel.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-fedora-autoloader.noarch 0:1.0.1-2.el7 will be erased
---> Package php-fpm.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-gd.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-json.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-mbstring.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-mysqlnd.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-opcache.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-pdo.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-pear.noarch 1:1.10.12-1.el7.remi will be erased
---> Package php-pecl-apcu.x86_64 0:5.1.18-1.el7.remi.7.3 will be erased
---> Package php-pecl-imagick.x86_64 0:3.4.4-10.el7.remi.7.3 will be erased
---> Package php-pecl-mcrypt.x86_64 0:1.0.3-1.el7.remi.7.3 will be erased
---> Package php-pecl-zip.x86_64 0:1.18.2-1.el7.remi.7.3 will be erased
---> Package php-php-gettext.noarch 0:1.0.12-1.el7 will be erased
---> Package php-process.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-snmp.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-tcpdf.noarch 0:6.2.26-1.el7 will be erased
---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.26-1.el7 will be erased
---> Package php-tidy.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package php-xml.x86_64 0:7.3.17-1.el7.remi will be erased
---> Package phpMyAdmin.noarch 0:4.4.15.10-4.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================================================
Removing:
php x86_64 7.3.17-1.el7.remi @remi-php73 10 M
php-bcmath x86_64 7.3.17-1.el7.remi @remi-php73 94 k
php-cli x86_64 7.3.17-1.el7.remi @remi-php73 15 M
php-common x86_64 7.3.17-1.el7.remi @remi-php73 12 M
php-devel x86_64 7.3.17-1.el7.remi @remi-php73 11 M
php-fedora-autoloader noarch 1.0.1-2.el7 @epel 15 k
php-fpm x86_64 7.3.17-1.el7.remi @remi-php73 5.0 M
php-gd x86_64 7.3.17-1.el7.remi @remi-php73 212 k
php-json x86_64 7.3.17-1.el7.remi @remi-php73 88 k
php-mbstring x86_64 7.3.17-1.el7.remi @remi-php73 2.1 M
php-mysqlnd x86_64 7.3.17-1.el7.remi @remi-php73 837 k
php-opcache x86_64 7.3.17-1.el7.remi @remi-php73 1.0 M
php-pdo x86_64 7.3.17-1.el7.remi @remi-php73 378 k
php-pear noarch 1:1.10.12-1.el7.remi @remi-php73 2.1 M
php-pecl-apcu x86_64 5.1.18-1.el7.remi.7.3 @remi-php73 224 k
php-pecl-imagick x86_64 3.4.4-10.el7.remi.7.3 @remi-php73 937 k
php-pecl-mcrypt x86_64 1.0.3-1.el7.remi.7.3 @remi-php73 100 k
php-pecl-zip x86_64 1.18.2-1.el7.remi.7.3 @remi-php73 194 k
php-php-gettext noarch 1.0.12-1.el7 @epel 57 k
php-process x86_64 7.3.17-1.el7.remi @remi-php73 187 k
php-snmp x86_64 7.3.17-1.el7.remi @remi-php73 105 k
php-tcpdf noarch 6.2.26-1.el7 @epel 11 M
php-tcpdf-dejavu-sans-fonts noarch 6.2.26-1.el7 @epel 1.5 M
php-tidy x86_64 7.3.17-1.el7.remi @remi-php73 105 k
php-xml x86_64 7.3.17-1.el7.remi @remi-php73 820 k
phpMyAdmin noarch 4.4.15.10-4.el7 @epel 24 M
Transaction Summary
========================================================================================================================================================================================================
Remove 26 Packages
Installed size: 99 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : phpMyAdmin-4.4.15.10-4.el7.noarch 1/26
warning: /etc/phpMyAdmin/config.inc.php saved as /etc/phpMyAdmin/config.inc.php.rpmsave
warning: /etc/httpd/conf.d/phpMyAdmin.conf saved as /etc/httpd/conf.d/phpMyAdmin.conf.rpmsave
Erasing : 1:php-pear-1.10.12-1.el7.remi.noarch 2/26
Erasing : php-php-gettext-1.0.12-1.el7.noarch 3/26
Erasing : php-tcpdf-dejavu-sans-fonts-6.2.26-1.el7.noarch 4/26
Erasing : php-tcpdf-6.2.26-1.el7.noarch 5/26
Erasing : php-fedora-autoloader-1.0.1-2.el7.noarch 6/26
Erasing : php-devel-7.3.17-1.el7.remi.x86_64 7/26
Erasing : php-7.3.17-1.el7.remi.x86_64 8/26
Erasing : php-cli-7.3.17-1.el7.remi.x86_64 9/26
Erasing : php-bcmath-7.3.17-1.el7.remi.x86_64 10/26
Erasing : php-gd-7.3.17-1.el7.remi.x86_64 11/26
Erasing : php-mbstring-7.3.17-1.el7.remi.x86_64 12/26
Erasing : php-process-7.3.17-1.el7.remi.x86_64 13/26
Erasing : php-tidy-7.3.17-1.el7.remi.x86_64 14/26
Erasing : php-xml-7.3.17-1.el7.remi.x86_64 15/26
Erasing : php-mysqlnd-7.3.17-1.el7.remi.x86_64 16/26
Erasing : php-pdo-7.3.17-1.el7.remi.x86_64 17/26
Erasing : php-pecl-zip-1.18.2-1.el7.remi.7.3.x86_64 18/26
Erasing : php-snmp-7.3.17-1.el7.remi.x86_64 19/26
Erasing : php-opcache-7.3.17-1.el7.remi.x86_64 20/26
warning: /etc/php.d/10-opcache.ini saved as /etc/php.d/10-opcache.ini.rpmsave
Erasing : php-pecl-imagick-3.4.4-10.el7.remi.7.3.x86_64 21/26
Erasing : php-fpm-7.3.17-1.el7.remi.x86_64 22/26
Erasing : php-pecl-apcu-5.1.18-1.el7.remi.7.3.x86_64 23/26
Erasing : php-pecl-mcrypt-1.0.3-1.el7.remi.7.3.x86_64 24/26
Erasing : php-json-7.3.17-1.el7.remi.x86_64 25/26
Erasing : php-common-7.3.17-1.el7.remi.x86_64 26/26
warning: /etc/php.ini saved as /etc/php.ini.rpmsave
Verifying : phpMyAdmin-4.4.15.10-4.el7.noarch 1/26
Verifying : 1:php-pear-1.10.12-1.el7.remi.noarch 2/26
Verifying : php-pecl-mcrypt-1.0.3-1.el7.remi.7.3.x86_64 3/26
Verifying : php-gd-7.3.17-1.el7.remi.x86_64 4/26
Verifying : php-tcpdf-dejavu-sans-fonts-6.2.26-1.el7.noarch 5/26
Verifying : php-common-7.3.17-1.el7.remi.x86_64 6/26
Verifying : php-pecl-apcu-5.1.18-1.el7.remi.7.3.x86_64 7/26
Verifying : php-pecl-zip-1.18.2-1.el7.remi.7.3.x86_64 8/26
Verifying : php-bcmath-7.3.17-1.el7.remi.x86_64 9/26
Verifying : php-xml-7.3.17-1.el7.remi.x86_64 10/26
Verifying : php-cli-7.3.17-1.el7.remi.x86_64 11/26
Verifying : php-fpm-7.3.17-1.el7.remi.x86_64 12/26
Verifying : php-pecl-imagick-3.4.4-10.el7.remi.7.3.x86_64 13/26
Verifying : php-tidy-7.3.17-1.el7.remi.x86_64 14/26
Verifying : php-mbstring-7.3.17-1.el7.remi.x86_64 15/26
Verifying : php-tcpdf-6.2.26-1.el7.noarch 16/26
Verifying : php-fedora-autoloader-1.0.1-2.el7.noarch 17/26
Verifying : php-json-7.3.17-1.el7.remi.x86_64 18/26
Verifying : php-devel-7.3.17-1.el7.remi.x86_64 19/26
Verifying : php-opcache-7.3.17-1.el7.remi.x86_64 20/26
Verifying : php-snmp-7.3.17-1.el7.remi.x86_64 21/26
Verifying : php-process-7.3.17-1.el7.remi.x86_64 22/26
Verifying : php-mysqlnd-7.3.17-1.el7.remi.x86_64 23/26
Verifying : php-pdo-7.3.17-1.el7.remi.x86_64 24/26
Verifying : php-php-gettext-1.0.12-1.el7.noarch 25/26
Verifying : php-7.3.17-1.el7.remi.x86_64 26/26
Removed:
php.x86_64 0:7.3.17-1.el7.remi php-bcmath.x86_64 0:7.3.17-1.el7.remi php-cli.x86_64 0:7.3.17-1.el7.remi php-common.x86_64 0:7.3.17-1.el7.remi
php-devel.x86_64 0:7.3.17-1.el7.remi php-fedora-autoloader.noarch 0:1.0.1-2.el7 php-fpm.x86_64 0:7.3.17-1.el7.remi php-gd.x86_64 0:7.3.17-1.el7.remi
php-json.x86_64 0:7.3.17-1.el7.remi php-mbstring.x86_64 0:7.3.17-1.el7.remi php-mysqlnd.x86_64 0:7.3.17-1.el7.remi php-opcache.x86_64 0:7.3.17-1.el7.remi
php-pdo.x86_64 0:7.3.17-1.el7.remi php-pear.noarch 1:1.10.12-1.el7.remi php-pecl-apcu.x86_64 0:5.1.18-1.el7.remi.7.3 php-pecl-imagick.x86_64 0:3.4.4-10.el7.remi.7.3
php-pecl-mcrypt.x86_64 0:1.0.3-1.el7.remi.7.3 php-pecl-zip.x86_64 0:1.18.2-1.el7.remi.7.3 php-php-gettext.noarch 0:1.0.12-1.el7 php-process.x86_64 0:7.3.17-1.el7.remi
php-snmp.x86_64 0:7.3.17-1.el7.remi php-tcpdf.noarch 0:6.2.26-1.el7 php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.26-1.el7 php-tidy.x86_64 0:7.3.17-1.el7.remi
php-xml.x86_64 0:7.3.17-1.el7.remi phpMyAdmin.noarch 0:4.4.15.10-4.el7
Complete!
最初に確認したパッケージのリストを参考に PHP 7.4 のリポジトリ remi-php74 から必要なパッケージを指定してインストール
# yum -y install --enablerepo=epel,remi,remi-php74 php php-bcmath php-cli php-common php-devel php-fpm php-gd php-json php-mbstring php-mysqlnd php-opcache php-pdo php-pear php-pecl-apcu php-pecl-imagick php-pecl-mcrypt php-pecl-zip php-php-gettext php-process php-snmp php-tidy php-xml
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.cat.net
* epel: ftp.iij.ad.jp
* extras: ty1.mirror.newmediaexpress.com
* remi: ftp.riken.jp
* remi-php74: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: ty1.mirror.newmediaexpress.com
remi | 3.0 kB 00:00:00
remi-php74 | 3.0 kB 00:00:00
(1/2): remi-php74/primary_db | 218 kB 00:00:01
(2/2): remi/primary_db | 2.7 MB 00:00:02
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.4.9-1.el7.remi will be installed
--> Processing Dependency: php-sodium(x86-64) = 7.4.9-1.el7.remi for package: php-7.4.9-1.el7.remi.x86_64
---> Package php-bcmath.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-cli.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-common.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-devel.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-fpm.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-gd.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-json.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-mbstring.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-mysqlnd.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-opcache.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-pdo.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-pear.noarch 1:1.10.12-1.el7.remi will be installed
--> Processing Dependency: php-composer(fedora/autoloader) for package: 1:php-pear-1.10.12-1.el7.remi.noarch
---> Package php-pecl-apcu.x86_64 0:5.1.18-1.el7.remi.7.4 will be installed
---> Package php-pecl-imagick.x86_64 0:3.4.4-10.el7.remi.7.4 will be installed
---> Package php-pecl-mcrypt.x86_64 0:1.0.3-1.el7.remi.7.4 will be installed
---> Package php-pecl-zip.x86_64 0:1.19.0-1.el7.remi.7.4 will be installed
---> Package php-php-gettext.noarch 0:1.0.12-1.el7.remi will be installed
---> Package php-process.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-snmp.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-tidy.x86_64 0:7.4.9-1.el7.remi will be installed
---> Package php-xml.x86_64 0:7.4.9-1.el7.remi will be installed
--> Running transaction check
---> Package php-fedora-autoloader.noarch 0:1.0.1-2.el7.remi will be installed
---> Package php-sodium.x86_64 0:7.4.9-1.el7.remi will be installed
--> Processing Dependency: libsodium.so.23()(64bit) for package: php-sodium-7.4.9-1.el7.remi.x86_64
--> Running transaction check
---> Package libsodium.x86_64 0:1.0.18-1.el7.remi will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================================================
Installing:
php x86_64 7.4.9-1.el7.remi remi-php74 3.4 M
php-bcmath x86_64 7.4.9-1.el7.remi remi-php74 77 k
php-cli x86_64 7.4.9-1.el7.remi remi-php74 5.1 M
php-common x86_64 7.4.9-1.el7.remi remi-php74 1.2 M
php-devel x86_64 7.4.9-1.el7.remi remi-php74 1.2 M
php-fpm x86_64 7.4.9-1.el7.remi remi-php74 1.8 M
php-gd x86_64 7.4.9-1.el7.remi remi-php74 85 k
php-json x86_64 7.4.9-1.el7.remi remi-php74 70 k
php-mbstring x86_64 7.4.9-1.el7.remi remi-php74 522 k
php-mysqlnd x86_64 7.4.9-1.el7.remi remi-php74 250 k
php-opcache x86_64 7.4.9-1.el7.remi remi-php74 327 k
php-pdo x86_64 7.4.9-1.el7.remi remi-php74 135 k
php-pear noarch 1:1.10.12-1.el7.remi remi 362 k
php-pecl-apcu x86_64 5.1.18-1.el7.remi.7.4 remi-php74 76 k
php-pecl-imagick x86_64 3.4.4-10.el7.remi.7.4 remi-php74 176 k
php-pecl-mcrypt x86_64 1.0.3-1.el7.remi.7.4 remi-php74 30 k
php-pecl-zip x86_64 1.19.0-1.el7.remi.7.4 remi-php74 60 k
php-php-gettext noarch 1.0.12-1.el7.remi remi 21 k
php-process x86_64 7.4.9-1.el7.remi remi-php74 89 k
php-snmp x86_64 7.4.9-1.el7.remi remi-php74 71 k
php-tidy x86_64 7.4.9-1.el7.remi remi-php74 71 k
php-xml x86_64 7.4.9-1.el7.remi remi-php74 205 k
Installing for dependencies:
libsodium x86_64 1.0.18-1.el7.remi remi 148 k
php-fedora-autoloader noarch 1.0.1-2.el7.remi remi 9.1 k
php-sodium x86_64 7.4.9-1.el7.remi remi-php74 82 k
Transaction Summary
========================================================================================================================================================================================================
Install 22 Packages (+3 Dependent packages)
Total download size: 15 M
Installed size: 68 M
Downloading packages:
(1/25): libsodium-1.0.18-1.el7.remi.x86_64.rpm | 148 kB 00:00:01
(2/25): php-7.4.9-1.el7.remi.x86_64.rpm | 3.4 MB 00:00:02
(3/25): php-fedora-autoloader-1.0.1-2.el7.remi.noarch.rpm | 9.1 kB 00:00:00
(4/25): php-bcmath-7.4.9-1.el7.remi.x86_64.rpm | 77 kB 00:00:02
(5/25): php-fpm-7.4.9-1.el7.remi.x86_64.rpm | 1.8 MB 00:00:00
(6/25): php-json-7.4.9-1.el7.remi.x86_64.rpm | 70 kB 00:00:00
(7/25): php-mbstring-7.4.9-1.el7.remi.x86_64.rpm | 522 kB 00:00:00
(8/25): php-mysqlnd-7.4.9-1.el7.remi.x86_64.rpm | 250 kB 00:00:00
(9/25): php-opcache-7.4.9-1.el7.remi.x86_64.rpm | 327 kB 00:00:00
(10/25): php-common-7.4.9-1.el7.remi.x86_64.rpm | 1.2 MB 00:00:03
(11/25): php-pdo-7.4.9-1.el7.remi.x86_64.rpm | 135 kB 00:00:00
(12/25): php-pecl-apcu-5.1.18-1.el7.remi.7.4.x86_64.rpm | 76 kB 00:00:00
(13/25): php-pecl-imagick-3.4.4-10.el7.remi.7.4.x86_64.rpm | 176 kB 00:00:00
(14/25): php-pecl-mcrypt-1.0.3-1.el7.remi.7.4.x86_64.rpm | 30 kB 00:00:00
(15/25): php-cli-7.4.9-1.el7.remi.x86_64.rpm | 5.1 MB 00:00:04
(16/25): php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64.rpm | 60 kB 00:00:00
(17/25): php-gd-7.4.9-1.el7.remi.x86_64.rpm | 85 kB 00:00:02
(18/25): php-devel-7.4.9-1.el7.remi.x86_64.rpm | 1.2 MB 00:00:03
(19/25): php-php-gettext-1.0.12-1.el7.remi.noarch.rpm | 21 kB 00:00:00
(20/25): php-snmp-7.4.9-1.el7.remi.x86_64.rpm | 71 kB 00:00:00
(21/25): php-xml-7.4.9-1.el7.remi.x86_64.rpm | 205 kB 00:00:00
(22/25): php-pear-1.10.12-1.el7.remi.noarch.rpm | 362 kB 00:00:01
(23/25): php-tidy-7.4.9-1.el7.remi.x86_64.rpm | 71 kB 00:00:00
(24/25): php-process-7.4.9-1.el7.remi.x86_64.rpm | 89 kB 00:00:01
(25/25): php-sodium-7.4.9-1.el7.remi.x86_64.rpm | 82 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.5 MB/s | 15 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php-common-7.4.9-1.el7.remi.x86_64 1/25
Installing : php-json-7.4.9-1.el7.remi.x86_64 2/25
Installing : php-cli-7.4.9-1.el7.remi.x86_64 3/25
Installing : php-fedora-autoloader-1.0.1-2.el7.remi.noarch 4/25
Installing : php-mbstring-7.4.9-1.el7.remi.x86_64 5/25
Installing : php-process-7.4.9-1.el7.remi.x86_64 6/25
Installing : php-xml-7.4.9-1.el7.remi.x86_64 7/25
Installing : php-pdo-7.4.9-1.el7.remi.x86_64 8/25
Installing : libsodium-1.0.18-1.el7.remi.x86_64 9/25
Installing : php-sodium-7.4.9-1.el7.remi.x86_64 10/25
Installing : php-7.4.9-1.el7.remi.x86_64 11/25
Installing : php-mysqlnd-7.4.9-1.el7.remi.x86_64 12/25
Installing : 1:php-pear-1.10.12-1.el7.remi.noarch 13/25
Installing : php-php-gettext-1.0.12-1.el7.remi.noarch 14/25
Installing : php-devel-7.4.9-1.el7.remi.x86_64 15/25
Installing : php-gd-7.4.9-1.el7.remi.x86_64 16/25
Installing : php-fpm-7.4.9-1.el7.remi.x86_64 17/25
Installing : php-opcache-7.4.9-1.el7.remi.x86_64 18/25
Installing : php-pecl-imagick-3.4.4-10.el7.remi.7.4.x86_64 19/25
Installing : php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64 20/25
Installing : php-snmp-7.4.9-1.el7.remi.x86_64 21/25
Installing : php-pecl-apcu-5.1.18-1.el7.remi.7.4.x86_64 22/25
Installing : php-bcmath-7.4.9-1.el7.remi.x86_64 23/25
Installing : php-pecl-mcrypt-1.0.3-1.el7.remi.7.4.x86_64 24/25
Installing : php-tidy-7.4.9-1.el7.remi.x86_64 25/25
Verifying : php-cli-7.4.9-1.el7.remi.x86_64 1/25
Verifying : 1:php-pear-1.10.12-1.el7.remi.noarch 2/25
Verifying : libsodium-1.0.18-1.el7.remi.x86_64 3/25
Verifying : php-gd-7.4.9-1.el7.remi.x86_64 4/25
Verifying : php-fedora-autoloader-1.0.1-2.el7.remi.noarch 5/25
Verifying : php-mbstring-7.4.9-1.el7.remi.x86_64 6/25
Verifying : php-fpm-7.4.9-1.el7.remi.x86_64 7/25
Verifying : php-process-7.4.9-1.el7.remi.x86_64 8/25
Verifying : php-json-7.4.9-1.el7.remi.x86_64 9/25
Verifying : php-opcache-7.4.9-1.el7.remi.x86_64 10/25
Verifying : php-pecl-imagick-3.4.4-10.el7.remi.7.4.x86_64 11/25
Verifying : php-xml-7.4.9-1.el7.remi.x86_64 12/25
Verifying : php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64 13/25
Verifying : php-snmp-7.4.9-1.el7.remi.x86_64 14/25
Verifying : php-pecl-apcu-5.1.18-1.el7.remi.7.4.x86_64 15/25
Verifying : php-php-gettext-1.0.12-1.el7.remi.noarch 16/25
Verifying : php-7.4.9-1.el7.remi.x86_64 17/25
Verifying : php-bcmath-7.4.9-1.el7.remi.x86_64 18/25
Verifying : php-devel-7.4.9-1.el7.remi.x86_64 19/25
Verifying : php-pdo-7.4.9-1.el7.remi.x86_64 20/25
Verifying : php-pecl-mcrypt-1.0.3-1.el7.remi.7.4.x86_64 21/25
Verifying : php-common-7.4.9-1.el7.remi.x86_64 22/25
Verifying : php-mysqlnd-7.4.9-1.el7.remi.x86_64 23/25
Verifying : php-tidy-7.4.9-1.el7.remi.x86_64 24/25
Verifying : php-sodium-7.4.9-1.el7.remi.x86_64 25/25
Installed:
php.x86_64 0:7.4.9-1.el7.remi php-bcmath.x86_64 0:7.4.9-1.el7.remi php-cli.x86_64 0:7.4.9-1.el7.remi php-common.x86_64 0:7.4.9-1.el7.remi
php-devel.x86_64 0:7.4.9-1.el7.remi php-fpm.x86_64 0:7.4.9-1.el7.remi php-gd.x86_64 0:7.4.9-1.el7.remi php-json.x86_64 0:7.4.9-1.el7.remi
php-mbstring.x86_64 0:7.4.9-1.el7.remi php-mysqlnd.x86_64 0:7.4.9-1.el7.remi php-opcache.x86_64 0:7.4.9-1.el7.remi php-pdo.x86_64 0:7.4.9-1.el7.remi
php-pear.noarch 1:1.10.12-1.el7.remi php-pecl-apcu.x86_64 0:5.1.18-1.el7.remi.7.4 php-pecl-imagick.x86_64 0:3.4.4-10.el7.remi.7.4 php-pecl-mcrypt.x86_64 0:1.0.3-1.el7.remi.7.4
php-pecl-zip.x86_64 0:1.19.0-1.el7.remi.7.4 php-php-gettext.noarch 0:1.0.12-1.el7.remi php-process.x86_64 0:7.4.9-1.el7.remi php-snmp.x86_64 0:7.4.9-1.el7.remi
php-tidy.x86_64 0:7.4.9-1.el7.remi php-xml.x86_64 0:7.4.9-1.el7.remi
Dependency Installed:
libsodium.x86_64 0:1.0.18-1.el7.remi php-fedora-autoloader.noarch 0:1.0.1-2.el7.remi php-sodium.x86_64 0:7.4.9-1.el7.remi
Complete!
バージョンを確認
# php -v
PHP 7.4.9 (cli) (built: Aug 4 2020 08:28:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies
ね、簡単でしょ?
あとは Web サーバを再起動して WordPress の管理画面に入りサイトヘルスを再表示。
無事に注意書きが消えました。プラグインとかテーマとかに関する注意については、必要なものは停止した状態で使いたい時に有効化する使い方しているので、意図しないものを削除するだけに留めておきます。
以上で更新自体は完了。とりあえず 7.3 の環境で使っていたモジュールはそのままインストールできたので、不具合とかはない……はず。まぁ、何かあったらそのとき対応すればいいかなと。
コメント