背景
WordPressは5.2系からPHPバージョン5.6.20以上が必要になりますが、CentOS7のBaseリポジトリでは5.4.16までしか対応していません。
今までサーバのPHPには特に手を入れていなかった為、WordPress5.1.1→5.2.1へのアップデートが出来なくなってしまいました。
そこで、元々サーバに入っていたPHP5.4.16をアンインストールし、PHP5.6系のrpmファイルが公開されているRemiリポジトリをyumに追加した上で、PHP5.6.40をインストールする事にしました。
おことわり
この作業では、最低限WordPressのアップデートが出来るようにする事が目的の為、古いPHP(5.6系)をインストールしています。
PHP5.6系は既に公式サポートが終了しておりますので、公式ブログでアナウンスされている通り、出来る限りPHP7.3へのアップデートを推奨します。
環境
PHP:5.4.16-46.el7→5.6.40-9.el7.remi
WebServer:Apache(httpd)
rootユーザは無効化済み
スーパーユーザ権限が必要なコマンドはsudoで昇格して実行します
目次
現状確認
PHP本体とどんな拡張ライブラリが入っているか確認します。
$ sudo yum list installed | grep php
[Sun Jun 02 17:51:44.829 2019] [user@server ~]$ sudo yum list installed | grep php
[Sun Jun 02 17:51:55.196 2019] [sudo] password for user:
[Sun Jun 02 17:52:03.687 2019] php.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-cli.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-common.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-gd.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-mbstring.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-mysql.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 17:52:03.687 2019] php-pdo.x86_64 5.4.16-46.el7 @base
続いてバージョン確認。
$ php -v
[Sun Jun 02 17:52:09.564 2019] [user@server ~]$ php -v
[Sun Jun 02 17:52:11.358 2019] PHP 5.4.16 (cli) (built: Oct 30 2018 19:30:51)
[Sun Jun 02 17:52:11.358 2019] Copyright (c) 1997-2013 The PHP Group
[Sun Jun 02 17:52:11.358 2019] Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
yumリポジトリの現状確認。
$ cd /etc/yum.repos.d
$ ls -l
[Sun Jun 02 18:00:06.487 2019] [user@server ~]$ cd /etc/yum.repos.d
[Sun Jun 02 18:00:11.807 2019] [user@server yum.repos.d]$ ls -l
[Sun Jun 02 18:00:31.393 2019] total 36
[Sun Jun 02 18:00:31.393 2019] -rw-r--r-- 1 root root 1664 Nov 30 2016 CentOS-Base.repo
[Sun Jun 02 18:00:31.393 2019] -rw-r--r-- 1 root root 1309 Nov 30 2016 CentOS-CR.repo
[Sun Jun 02 18:00:31.393 2019] -rw-r--r-- 1 root root 649 Nov 30 2016 CentOS-Debuginfo.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r-- 1 root root 314 Nov 30 2016 CentOS-fasttrack.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r-- 1 root root 630 Nov 30 2016 CentOS-Media.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r-- 1 root root 1331 Nov 30 2016 CentOS-Sources.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r-- 1 root root 2893 Nov 30 2016 CentOS-Vault.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r--. 1 root root 957 Oct 11 2016 epel.repo
[Sun Jun 02 18:00:31.394 2019] -rw-r--r-- 1 root root 1056 Dec 28 2016 epel-testing.repo
RemiリポジトリのPHPをインストールする時はEPELリポジトリも必要なのですが、既に参照出来るようになっています。
※いつ追加したか忘れた
イメージバックアップ(出来れば)
この辺はお使いの環境によってお好みで。
やっておけば、作業に失敗してどうしようも無くなった時にさくっと元に戻せます。
このはちゃんはいいぞ。
https://support.conoha.jp/v/saveimages/
PHPの設定ファイルのバックアップ
$ cd /etc
$ ls -l | grep php
$ sudo cp php.ini php.ini.`date "+%Y%m%d"`
$ ls -l | grep php
[Sun Jun 02 21:11:15.358 2019] [user@server ~]$ cd /etc
[Sun Jun 02 21:14:21.583 2019] [user@server etc]$ ls -l | grep php
[Sun Jun 02 21:14:27.309 2019] drwxr-xr-x 2 root root 4096 Feb 9 16:39 php.d
[Sun Jun 02 21:14:27.309 2019] -rw-r--r-- 1 root root 64948 Mar 5 2017 php.ini
[Sun Jun 02 21:14:27.309 2019] -rw-r--r-- 1 root root 64945 Mar 5 2017 php.ini.20170305
[Sun Jun 02 21:14:27.311 2019] [user@server etc]$ cp php.ini php.ini.`date "+%Y%m%d"`
[Sun Jun 02 21:14:39.295 2019] cp: cannot create regular file ‘php.ini.20190602’: Permission denied ←←←うっかりさん
[Sun Jun 02 21:14:39.295 2019] [user@server etc]$ sudo cp php.ini php.ini.`date "+%Y%m%d"`
[Sun Jun 02 21:15:10.337 2019] [sudo] password for user:
[Sun Jun 02 21:15:13.614 2019] [user@server etc]$
[Sun Jun 02 21:15:14.220 2019] [user@server etc]$
[Sun Jun 02 21:15:14.399 2019] [user@server etc]$ sudo cp php.ini php.ini.`date "+%Y%m%d"`ls -l | grep php
[Sun Jun 02 21:15:17.938 2019] drwxr-xr-x 2 root root 4096 Feb 9 16:39 php.d
[Sun Jun 02 21:15:17.938 2019] -rw-r--r-- 1 root root 64948 Mar 5 2017 php.ini
[Sun Jun 02 21:15:17.938 2019] -rw-r--r-- 1 root root 64945 Mar 5 2017 php.ini.20170305
[Sun Jun 02 21:15:17.938 2019] -rw-r--r-- 1 root root 64948 Jun 2 21:15 php.ini.20190602
yumにRemiリポジトリを追加
インストールするものの確認
RemiリポジトリのConfiguration Wizardにアクセスし、リポジトリ情報インストール用のRPMファイルの名前を確認しておきます。
https://rpms.remirepo.net/wizard/
Remiのリポジトリ情報インストール
yumにRemiのリポジトリ情報をインストールします。
$ sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
[Sun Jun 02 21:17:13.605 2019] [user@server etc]$ sudo yum install http://rpms.remirepo.net/enterpri se/remi-release-7.rpm
[Sun Jun 02 21:17:20.895 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 21:17:21.696 2019] remi-release-7.rpm | 16 kB 00:00
[Sun Jun 02 21:17:21.696 2019] Examining /var/tmp/yum-root-CoShQs/remi-release-7.rpm: remi-release-7.6-2.el7.remi.noarch
[Sun Jun 02 21:17:21.700 2019] Marking /var/tmp/yum-root-CoShQs/remi-release-7.rpm to be installed
[Sun Jun 02 21:17:21.700 2019] Resolving Dependencies
[Sun Jun 02 21:17:21.700 2019] --> Running transaction check
[Sun Jun 02 21:17:21.700 2019] ---> Package remi-release.noarch 0:7.6-2.el7.remi will be installed
[Sun Jun 02 21:17:22.510 2019] --> Finished Dependency Resolution
[Sun Jun 02 21:17:22.887 2019]
[Sun Jun 02 21:17:22.887 2019] Dependencies Resolved
[Sun Jun 02 21:17:22.887 2019]
[Sun Jun 02 21:17:22.887 2019] ================================================================================
[Sun Jun 02 21:17:22.887 2019] Package Arch Version Repository Size
[Sun Jun 02 21:17:22.887 2019] ================================================================================
[Sun Jun 02 21:17:22.887 2019] Installing:
[Sun Jun 02 21:17:22.887 2019] remi-release noarch 7.6-2.el7.remi /remi-release-7 19 k
[Sun Jun 02 21:17:22.887 2019]
[Sun Jun 02 21:17:22.887 2019] Transaction Summary
[Sun Jun 02 21:17:22.887 2019] ================================================================================
[Sun Jun 02 21:17:22.887 2019] Install 1 Package
[Sun Jun 02 21:17:22.887 2019]
[Sun Jun 02 21:17:22.887 2019] Total size: 19 k
[Sun Jun 02 21:17:22.887 2019] Installed size: 19 k
[Sun Jun 02 21:17:22.887 2019] Is this ok [y/d/N]: y
[Sun Jun 02 21:17:26.282 2019] Downloading packages:
[Sun Jun 02 21:17:26.285 2019] Running transaction check
[Sun Jun 02 21:17:26.289 2019] Running transaction test
[Sun Jun 02 21:17:26.300 2019] Transaction test succeeded
[Sun Jun 02 21:17:26.300 2019] Running transaction
[Sun Jun 02 21:17:26.327 2019] Installing : remi-release-7.6-2.el7.remi. [ ] 1/1 Installing : remi-release-7.6-2.el7.remi. [# ] 1/1 Installing : remi-release-7.6-2.el7.remi. [###### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [########## ] 1/1 Installing : remi-release-7.6-2.el7.remi. [########### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [############ ] 1/1 Installing : remi-release-7.6-2.el7.remi. [############# ] 1/1 Installing : remi-release-7.6-2.el7.remi. [############### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [################# ] 1/1 Installing : remi-release-7.6-2.el7.remi. [#################### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [##################### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [####################### ] 1/1 Installing : remi-release-7.6-2.el7.remi. [######################## ] 1/1 Installing : remi-release-7.6-2.el7.remi. [############################ ] 1/1 Installing : remi-release-7.6-2.el7.remi.noarch 1/1
[Sun Jun 02 21:17:26.361 2019] Verifying : remi-release-7.6-2.el7.remi.noarch 1/1
[Sun Jun 02 21:17:26.456 2019]
[Sun Jun 02 21:17:26.456 2019] Installed:
[Sun Jun 02 21:17:26.456 2019] remi-release.noarch 0:7.6-2.el7.remi
[Sun Jun 02 21:17:26.456 2019]
[Sun Jun 02 21:17:26.456 2019] Complete!
Remiリポジトリの設定ファイルを編集
パッケージの参照元を理化学研究所のミラーサイト(ftp.riken.jp)に変更します。
remi-phpxx.repoというファイルをいじれば良いはず。
$ cd /etc/yum.repos.d
$ ls -l
[Sun Jun 02 21:17:30.503 2019][user@server etc]$ cd /etc/yum.repos.d
[Sun Jun 02 21:18:07.544 2019] [user@server yum.repos.d]$ ls -l
[Sun Jun 02 21:18:09.457 2019] total 84
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1664 Nov 30 2016 CentOS-Base.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1309 Nov 30 2016 CentOS-CR.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 649 Nov 30 2016 CentOS-Debuginfo.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 314 Nov 30 2016 CentOS-fasttrack.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 630 Nov 30 2016 CentOS-Media.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1331 Nov 30 2016 CentOS-Sources.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 2893 Nov 30 2016 CentOS-Vault.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r--. 1 root root 957 Oct 11 2016 epel.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1056 Dec 28 2016 epel-testing.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi91.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi92.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi93.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi94.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 855 Mar 8 16:34 remi-modular.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 456 Mar 8 16:34 remi-php54.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php70.repo
[Sun Jun 02 21:18:09.457 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php71.repo
[Sun Jun 02 21:18:09.463 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php72.repo
[Sun Jun 02 21:18:09.463 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php73.repo
[Sun Jun 02 21:18:09.463 2019] -rw-r--r-- 1 root root 2605 Mar 8 16:34 remi.repo
[Sun Jun 02 21:18:09.463 2019] -rw-r--r-- 1 root root 750 Mar 8 16:34 remi-safe.repo
あれ?
remi-php56.repoというファイルがあっても良さそうなのに、無い。。。
とりあえず、remi.repoというファイルを見てみます。
$ sudo cat remi.repo
中を覗いてみたら、、、ありました!
[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php56/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/php56/mirror
# NOTICE: common dependencies are in "remi-safe"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56-debuginfo]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.remirepo.net/enterprise/7/debug-php56/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
という事で、このファイルをいじります。
バックアップを作成します。
$ sudo cp remi.repo remi.repo.`date "+%Y%m%d"`
$ ls -l
[Sun Jun 02 21:40:55.763 2019] [user@server yum.repos.d]$ sudo cp remi.repo remi.repo.`date "+%Y%m%d "`
[Sun Jun 02 21:41:04.556 2019] [sudo] password for user:
[Sun Jun 02 21:41:08.393 2019] [user@server yum.repos.d]$
[Sun Jun 02 21:41:08.977 2019] [user@server yum.repos.d]$
[Sun Jun 02 21:41:09.150 2019] [user@server yum.repos.d]$ ls -l
[Sun Jun 02 21:41:11.114 2019] total 88
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 1664 Nov 30 2016 CentOS-Base.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 1309 Nov 30 2016 CentOS-CR.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 649 Nov 30 2016 CentOS-Debuginfo.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 314 Nov 30 2016 CentOS-fasttrack.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 630 Nov 30 2016 CentOS-Media.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 1331 Nov 30 2016 CentOS-Sources.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 2893 Nov 30 2016 CentOS-Vault.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r--. 1 root root 957 Oct 11 2016 epel.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 1056 Dec 28 2016 epel-testing.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi91.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi92.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi93.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 446 Mar 8 16:34 remi-glpi94.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 855 Mar 8 16:34 remi-modular.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 456 Mar 8 16:34 remi-php54.repo
[Sun Jun 02 21:41:11.114 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php70.repo
[Sun Jun 02 21:41:11.115 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php71.repo
[Sun Jun 02 21:41:11.120 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php72.repo
[Sun Jun 02 21:41:11.120 2019] -rw-r--r-- 1 root root 1314 Mar 8 16:34 remi-php73.repo
[Sun Jun 02 21:41:11.120 2019] -rw-r--r-- 1 root root 2605 Mar 8 16:34 remi.repo
[Sun Jun 02 21:41:11.120 2019] -rw-r--r-- 1 root root 2605 Jun 2 21:41 remi.repo.20190602
[Sun Jun 02 21:41:11.120 2019] -rw-r--r-- 1 root root 750 Mar 8 16:34 remi-safe.repo
remi.repoを編集。
[Sun Jun 02 21:41:11.120 2019] [user@server yum.repos.d]$ sudo vi remi.repo
[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/
baseurl=http://ftp.riken.jp/Linux/remi/enterprise/7/php56/$basearch/ ←追記
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php56/httpsmirror
#mirrorlist=http://cdn.remirepo.net/enterprise/7/php56/mirror ←コメントアウト
# NOTICE: common dependencies are in "remi-safe"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56-debuginfo]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch - debuginfo
#baseurl=http://rpms.remirepo.net/enterprise/7/debug-php56/$basearch/ ←コメントアウト
baseurl=http://ftp.riken.jp/Linux/remi/enterprise/7/debug-php56/$basearch/ ←追記
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
編集した箇所の差分チェック。
$ sudo diff remi.repo remi.repo.20190602
[Sun Jun 02 21:53:31.097 2019] [user@server yum.repos.d]$ sudo diff remi.repo remi.repo.20190602
[Sun Jun 02 21:53:46.999 2019] [sudo] password for user:
[Sun Jun 02 21:53:50.666 2019] 27d26
[Sun Jun 02 21:53:50.666 2019] < baseurl=http://ftp.riken.jp/Linux/remi/enterprise/7/php56/$basearch/
[Sun Jun 02 21:53:50.666 2019] 29c28
[Sun Jun 02 21:53:50.666 2019] < #mirrorlist=http://cdn.remirepo.net/enterprise/7/php56/mirror
[Sun Jun 02 21:53:50.666 2019] ---
[Sun Jun 02 21:53:50.666 2019] > mirrorlist=http://cdn.remirepo.net/enterprise/7/php56/mirror
[Sun Jun 02 21:53:50.666 2019] 61,62c60
[Sun Jun 02 21:53:50.666 2019] < #baseurl=http://rpms.remirepo.net/enterprise/7/debug-php56/$basearch/
[Sun Jun 02 21:53:50.666 2019] < baseurl=http://ftp.riken.jp/Linux/remi/enterprise/7/debug-php56/$basearch/
[Sun Jun 02 21:53:50.666 2019] ---
[Sun Jun 02 21:53:50.666 2019] > baseurl=http://rpms.remirepo.net/enterprise/7/debug-php56/$basearch/
Remiリポジトリを参照できるようになったか確認
とりあえず、PHPの重複バージョンも含めたリストが取得できるか確認してみます。
$ sudo yum --showduplicates list --enablerepo=remi php
[Sun Jun 02 21:56:50.518 2019] [user@server yum.repos.d]$ sudo yum --showduplicates list --enablerep o=remi php
[Sun Jun 02 21:57:21.247 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 21:57:23.104 2019] remi | 3.0 kB 00:00
[Sun Jun 02 21:57:23.523 2019] remi-safe | 3.0 kB 00:00
[Sun Jun 02 21:57:24.756 2019] (2/2): remi-safe/primary_d 0% [ ] 0.0 B/s | 0 B --:-- ETA (2/2): remi-safe/primary_d 1% [ ] 0.0 B/s | 48 kB --:-- ETA (2/2): remi-safe/primary_d 5% [- ] 269 kB/s | 223 kB 00:14 ETA (2/2): remi-safe/primary_d 19% [=== ] 361 kB/s | 767 kB 00:09 ETA (1/2): remi-safe/primary_db | 1.5 MB 00:02
[Sun Jun 02 21:57:26.316 2019] (2/2): remi/primary_db 86% [=============- ] 864 kB/s | 3.4 MB 00:00 ETA (2/2): remi/primary_db | 2.4 MB 00:02
[Sun Jun 02 21:57:26.443 2019] Loading mirror speeds from cached hostfile
[Sun Jun 02 21:57:34.785 2019] * base: ftp.iij.ad.jp
[Sun Jun 02 21:57:34.785 2019] * epel: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 21:57:34.785 2019] * epel-debuginfo: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 21:57:34.785 2019] * epel-source: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 21:57:34.785 2019] * extras: ftp.iij.ad.jp
[Sun Jun 02 21:57:34.785 2019] * remi: ftp.riken.jp
[Sun Jun 02 21:57:34.785 2019] * remi-safe: ftp.riken.jp
[Sun Jun 02 21:57:34.785 2019] * updates: ftp.iij.ad.jp
[Sun Jun 02 21:57:38.451 2019] Installed Packages
[Sun Jun 02 21:57:38.451 2019] php.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 21:57:38.464 2019] Available Packages
[Sun Jun 02 21:57:38.464 2019] php.x86_64 5.4.16-46.el7 base
[Sun Jun 02 21:57:38.464 2019] php.x86_64 5.4.45-16.el7.remi remi
[Sun Jun 02 21:57:38.464 2019] php.x86_64 5.4.45-17.el7.remi remi
おっと、remi-php56が抜けてました。
$ sudo yum --showduplicates list --enablerepo=remi,remi-php56 php
[Sun Jun 02 21:59:24.039 2019] [user@server yum.repos.d]$ sudo yum --showduplicates list --enablerepoo=remi ,remi-php56
[Sun Jun 02 22:03:56.843 2019] [sudo] password for user:
[Sun Jun 02 22:04:01.656 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 22:04:01.758 2019] remi-php56 | 3.0 kB 00:00
[Sun Jun 02 22:04:01.867 2019] remi-php56/x86_64/primary_db | 247 kB 00:00
[Sun Jun 02 22:04:01.874 2019] Loading mirror speeds from cached hostfile
[Sun Jun 02 22:04:08.226 2019] * base: ftp.iij.ad.jp
[Sun Jun 02 22:04:08.226 2019] * epel: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:04:08.226 2019] * epel-debuginfo: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:04:08.226 2019] * epel-source: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:04:08.226 2019] * extras: ftp.iij.ad.jp
[Sun Jun 02 22:04:08.226 2019] * remi: ftp.riken.jp
[Sun Jun 02 22:04:08.226 2019] * remi-safe: ftp.riken.jp
[Sun Jun 02 22:04:08.226 2019] * updates: ftp.iij.ad.jp
[Sun Jun 02 22:04:08.642 2019] Installed Packages
[Sun Jun 02 22:04:08.642 2019] php.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:04:08.668 2019] Available Packages
[Sun Jun 02 22:04:08.668 2019] php.x86_64 5.4.16-46.el7 base
[Sun Jun 02 22:04:08.668 2019] php.x86_64 5.4.45-16.el7.remi remi
[Sun Jun 02 22:04:08.668 2019] php.x86_64 5.4.45-17.el7.remi remi
[Sun Jun 02 22:04:08.668 2019] php.x86_64 5.6.40-8.el7.remi remi-php56
[Sun Jun 02 22:04:08.668 2019] php.x86_64 5.6.40-9.el7.remi remi-php56
remi、remi-safeが追加されていますね。
参照先サーバもftp.riken.jpになっていますし、大丈夫そうです。
インストール予定の全パッケージのバージョン確認
という事で、今追加したばかりのRemiリポジトリを有効化した上で、PHP本体と拡張ライブラリのどのバージョンがインストールされるか確認します。
$ sudo yum list --enablerepo=remi,remi-php56 php php-cli php-common php-gd php-mbstring php-mysql php-pdo
Installed Packages
php.x86_64 5.4.16-46.el7 @base
php-cli.x86_64 5.4.16-46.el7 @base
php-common.x86_64 5.4.16-46.el7 @base
php-gd.x86_64 5.4.16-46.el7 @base
php-mbstring.x86_64 5.4.16-46.el7 @base
php-mysql.x86_64 5.4.16-46.el7 @base
php-pdo.x86_64 5.4.16-46.el7 @base
Available Packages
php.x86_64 5.6.40-9.el7.remi remi-php56
php-cli.x86_64 5.6.40-9.el7.remi remi-php56
php-common.x86_64 5.6.40-9.el7.remi remi-php56
php-gd.x86_64 5.6.40-9.el7.remi remi-php56
php-mbstring.x86_64 5.6.40-9.el7.remi remi-php56
php-mysql.x86_64 5.4.45-17.el7.remi remi ←remi-php56になっていない
php-pdo.x86_64 5.6.40-9.el7.remi remi-php56
このままだと、php-mysqlが古いもの(5.4.45-17)しか入りません。
これはおかしい。。
このままだとマズイので、どうしたら良いか少し調べてみます。
カメラのちプログラミング(Heart)ところによりカフェ さま
https://4to.pics/article/post/88
※ php-mysqlnd を入れておかないと、 WordPress のインストール時に以下のエラーが出るので必須です。
なるほど。。。
MySQL用の拡張ライブラリが変わったのですね。。。
という事で、インストールするMySQL用拡張ライブラリをphp-mysql→ php-mysqlndに変更。
$ sudo yum list --enablerepo=remi,remi-php56 php php-cli php-common php-gd php-mbstring php-mysqlnd php-pdo
[Sun Jun 02 22:19:09.561 2019] [user@server yum.repos.d]$ sudo yum list --enablerepo=remi,remi-php56 php php-cli php-common php-gd php-mbstring php-mysqlnd php-pdo
[Sun Jun 02 22:19:14.345 2019] [sudo] password for user:
[Sun Jun 02 22:19:18.891 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 22:19:19.536 2019] Loading mirror speeds from cached hostfile
[Sun Jun 02 22:19:28.642 2019] * base: ftp.iij.ad.jp
[Sun Jun 02 22:19:28.642 2019] * epel: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:19:28.642 2019] * epel-debuginfo: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:19:28.642 2019] * epel-source: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:19:28.642 2019] * extras: ftp.iij.ad.jp
[Sun Jun 02 22:19:28.642 2019] * remi: ftp.riken.jp
[Sun Jun 02 22:19:28.642 2019] * remi-safe: ftp.riken.jp
[Sun Jun 02 22:19:28.642 2019] * updates: ftp.iij.ad.jp
[Sun Jun 02 22:19:29.748 2019] Installed Packages
[Sun Jun 02 22:19:29.748 2019] php.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.748 2019] php-cli.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.748 2019] php-common.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.748 2019] php-gd.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.748 2019] php-mbstring.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.748 2019] php-pdo.x86_64 5.4.16-46.el7 @base
[Sun Jun 02 22:19:29.760 2019] Available Packages
[Sun Jun 02 22:19:29.760 2019] php.x86_64 5.6.40-9.el7.remi remi-php56
[Sun Jun 02 22:19:29.760 2019] php-cli.x86_64 5.6.40-9.el7.remi remi-php56
[Sun Jun 02 22:19:29.760 2019] php-common.x86_64 5.6.40-9.el7.remi remi-php56
[Sun Jun 02 22:19:29.760 2019] php-gd.x86_64 5.6.40-9.el7.remi remi-php56
[Sun Jun 02 22:19:29.760 2019] php-mbstring.x86_64 5.6.40-9.el7.remi remi-php56
[Sun Jun 02 22:19:29.760 2019] php-mysqlnd.x86_64 5.6.40-9.el7.remi remi-php56 ←←←バージョンが揃いました!
[Sun Jun 02 22:19:29.760 2019] php-pdo.x86_64 5.6.40-9.el7.remi remi-php56
これで目的のPHP本体、拡張ライブラリがインストール出来るようになりました。
一旦WebServerを停止@Apache
PHPを入れ替えた後再起動でも良いのですが、念のため止める事にします。
$ sudo systemctl status httpd
$ sudo systemctl stop httpd
$ sudo systemctl status httpd
[Sun Jun 02 22:20:47.874 2019] [user@server ~]$ sudo systemctl status httpd
[Sun Jun 02 22:20:49.992 2019] ● httpd.service - The Apache HTTP Server
[Sun Jun 02 22:20:49.992 2019] Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
[Sun Jun 02 22:20:49.992 2019] Active: active (running) since Sun 2019-06-02 20:41:40 JST; 1h 39min ago
[Sun Jun 02 22:20:49.992 2019] Docs: man:httpd(8)
[Sun Jun 02 22:20:49.992 2019] man:apachectl(8)
[Sun Jun 02 22:20:49.992 2019] Main PID: 879 (httpd)
[Sun Jun 02 22:20:49.992 2019] Status: "Total requests: 12; Current requests/sec: 0; Current traffic: 0 B/sec"
[Sun Jun 02 22:20:49.992 2019] CGroup: /system.slice/httpd.service
[Sun Jun 02 22:20:49.992 2019] tq 879 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] tq1165 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] tq1166 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] tq1168 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] tq1174 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] tq1179 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.992 2019] mq2593 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:20:49.997 2019]
[Sun Jun 02 22:20:49.997 2019] Jun 02 20:41:39 server systemd[1]: Starting The Apache HTTP Server...
[Sun Jun 02 22:20:49.997 2019] Jun 02 20:41:40 server systemd[1]: Started The Apache HTTP Server.
[Sun Jun 02 22:20:49.997 2019] [user@server ~]$
[Sun Jun 02 22:21:02.639 2019] [user@server ~]$ sudo systemctl stop httpd
[Sun Jun 02 22:21:06.203 2019] [user@server ~]$
[Sun Jun 02 22:21:08.113 2019] [user@server ~]$
[Sun Jun 02 22:21:08.286 2019] [user@server ~]$ sudo systemctl status httpd
[Sun Jun 02 22:21:13.324 2019] ● httpd.service - The Apache HTTP Server
[Sun Jun 02 22:21:13.324 2019] Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
[Sun Jun 02 22:21:13.324 2019] Active: inactive (dead) since Sun 2019-06-02 22:20:58 JST; 7s ago
[Sun Jun 02 22:21:13.324 2019] Docs: man:httpd(8)
[Sun Jun 02 22:21:13.324 2019] man:apachectl(8)
[Sun Jun 02 22:21:13.324 2019] Process: 3091 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:21:13.324 2019] Process: 879 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:21:13.324 2019] Main PID: 879 (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:21:13.324 2019] Status: "Total requests: 12; Current requests/sec: 0; Current traffic: 0 B/sec"
[Sun Jun 02 22:21:13.324 2019]
[Sun Jun 02 22:21:13.324 2019] Jun 02 20:41:39 server systemd[1]: Starting The Apache HTTP Server...
[Sun Jun 02 22:21:13.324 2019] Jun 02 20:41:40 server systemd[1]: Started The Apache HTTP Server.
[Sun Jun 02 22:21:13.324 2019] Jun 02 22:20:57 server systemd[1]: Stopping The Apache HTTP Server...
[Sun Jun 02 22:21:13.324 2019] Jun 02 22:20:58 server systemd[1]: Stopped The Apache HTTP Server.
現在のPHPをアンインストール
$ sudo yum remove php*
[Sun Jun 02 22:21:21.581 2019] [user@server ~]$ sudo yum remove php*
[Sun Jun 02 22:21:31.262 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 22:21:31.641 2019] Resolving Dependencies
[Sun Jun 02 22:21:31.644 2019] --> Running transaction check
[Sun Jun 02 22:21:31.645 2019] ---> Package php.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-cli.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-common.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-gd.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-mbstring.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-mysql.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:31.661 2019] ---> Package php-pdo.x86_64 0:5.4.16-46.el7 will be erased
[Sun Jun 02 22:21:32.111 2019] --> Finished Dependency Resolution
[Sun Jun 02 22:21:32.345 2019]
[Sun Jun 02 22:21:32.345 2019] Dependencies Resolved
[Sun Jun 02 22:21:32.345 2019]
[Sun Jun 02 22:21:32.345 2019] ================================================================================
[Sun Jun 02 22:21:32.345 2019] Package Arch Version Repository Size
[Sun Jun 02 22:21:32.345 2019] ================================================================================
[Sun Jun 02 22:21:32.345 2019] Removing:
[Sun Jun 02 22:21:32.345 2019] php x86_64 5.4.16-46.el7 @base 4.4 M
[Sun Jun 02 22:21:32.345 2019] php-cli x86_64 5.4.16-46.el7 @base 8.8 M
[Sun Jun 02 22:21:32.345 2019] php-common x86_64 5.4.16-46.el7 @base 3.8 M
[Sun Jun 02 22:21:32.345 2019] php-gd x86_64 5.4.16-46.el7 @base 343 k
[Sun Jun 02 22:21:32.345 2019] php-mbstring x86_64 5.4.16-46.el7 @base 1.3 M
[Sun Jun 02 22:21:32.345 2019] php-mysql x86_64 5.4.16-46.el7 @base 232 k
[Sun Jun 02 22:21:32.345 2019] php-pdo x86_64 5.4.16-46.el7 @base 193 k
[Sun Jun 02 22:21:32.345 2019]
[Sun Jun 02 22:21:32.345 2019] Transaction Summary
[Sun Jun 02 22:21:32.345 2019] ================================================================================
[Sun Jun 02 22:21:32.345 2019] Remove 7 Packages
[Sun Jun 02 22:21:32.345 2019]
[Sun Jun 02 22:21:32.345 2019] Installed size: 19 M
[Sun Jun 02 22:21:32.345 2019] Is this ok [y/N]: y
[Sun Jun 02 22:22:12.310 2019] Downloading packages:
[Sun Jun 02 22:22:12.320 2019] Running transaction check
[Sun Jun 02 22:22:12.322 2019] Running transaction test
[Sun Jun 02 22:22:12.564 2019] Transaction test succeeded
[Sun Jun 02 22:22:12.564 2019] Running transaction
[Sun Jun 02 22:22:12.620 2019] Erasing : php-5.4.16-46.el7.x86_64 1/7
[Sun Jun 02 22:22:12.652 2019] Erasing : php-cli-5.4.16-46.el7.x86_64 2/7
[Sun Jun 02 22:22:12.670 2019] Erasing : php-mbstring-5.4.16-46.el7.x86_64 3/7
[Sun Jun 02 22:22:12.683 2019] Erasing : php-gd-5.4.16-46.el7.x86_64 4/7
[Sun Jun 02 22:22:12.698 2019] Erasing : php-mysql-5.4.16-46.el7.x86_64 5/7
[Sun Jun 02 22:22:12.711 2019] Erasing : php-pdo-5.4.16-46.el7.x86_64 6/7
[Sun Jun 02 22:22:12.726 2019] Erasing : php-common-5.4.16-46.el7.x86_64 7/7
[Sun Jun 02 22:22:12.726 2019] warning: /etc/php.ini saved as /etc/php.ini.rpmsave
[Sun Jun 02 22:22:12.749 2019] Verifying : php-mysql-5.4.16-46.el7.x86_64 1/7
[Sun Jun 02 22:22:12.755 2019] Verifying : php-pdo-5.4.16-46.el7.x86_64 2/7
[Sun Jun 02 22:22:12.755 2019] Verifying : php-gd-5.4.16-46.el7.x86_64 3/7
[Sun Jun 02 22:22:12.755 2019] Verifying : php-cli-5.4.16-46.el7.x86_64 4/7
[Sun Jun 02 22:22:12.759 2019] Verifying : php-mbstring-5.4.16-46.el7.x86_64 5/7
[Sun Jun 02 22:22:12.759 2019] Verifying : php-5.4.16-46.el7.x86_64 6/7
[Sun Jun 02 22:22:12.759 2019] Verifying : php-common-5.4.16-46.el7.x86_64 7/7
[Sun Jun 02 22:22:12.880 2019]
[Sun Jun 02 22:22:12.880 2019] Removed:
[Sun Jun 02 22:22:12.880 2019] php.x86_64 0:5.4.16-46.el7 php-cli.x86_64 0:5.4.16-46.el7
[Sun Jun 02 22:22:12.880 2019] php-common.x86_64 0:5.4.16-46.el7 php-gd.x86_64 0:5.4.16-46.el7
[Sun Jun 02 22:22:12.880 2019] php-mbstring.x86_64 0:5.4.16-46.el7 php-mysql.x86_64 0:5.4.16-46.el7
[Sun Jun 02 22:22:12.880 2019] php-pdo.x86_64 0:5.4.16-46.el7
[Sun Jun 02 22:22:12.880 2019]
[Sun Jun 02 22:22:12.880 2019] Complete!
$ sudo yum list installed | grep php
[Sun Jun 02 22:22:14.586 2019] [user@server ~]$ sudo yum list installed | grep php
[Sun Jun 02 22:23:00.123 2019] [user@server ~]$ # アンインストールしたから何も表示されない
PHP5.6.20のインストール
$ sudo yum install --enablerepo=remi-php56 php php-cli php-common php-gd php-mbstring php-mysql php-pdo
[Sun Jun 02 22:23:32.331 2019] [user@server ~]$ sudo yum install --enablerepo=remi-php56 php php-cli php-common php-gd php-mbstring php-mysql php-pdo
[Sun Jun 02 22:24:19.253 2019] Loaded plugins: fastestmirror, langpacks
[Sun Jun 02 22:24:19.330 2019] Loading mirror speeds from cached hostfile
[Sun Jun 02 22:24:21.234 2019] * base: ftp.iij.ad.jp
[Sun Jun 02 22:24:21.234 2019] * epel: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:24:21.234 2019] * epel-debuginfo: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:24:21.234 2019] * epel-source: ftp.yz.yamagata-u.ac.jp
[Sun Jun 02 22:24:21.234 2019] * extras: ftp.iij.ad.jp
[Sun Jun 02 22:24:21.234 2019] * remi-safe: ftp.riken.jp
[Sun Jun 02 22:24:21.234 2019] * updates: ftp.iij.ad.jp
[Sun Jun 02 22:24:22.007 2019] Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.40-9.el7.remi.x86_64 instead
[Sun Jun 02 22:24:22.083 2019] Resolving Dependencies
[Sun Jun 02 22:24:22.083 2019] --> Running transaction check
[Sun Jun 02 22:24:22.083 2019] ---> Package php.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.106 2019] ---> Package php-cli.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.110 2019] ---> Package php-common.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.110 2019] --> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.40-9.el7.remi.x86_64
[Sun Jun 02 22:24:22.438 2019] --> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el7.remi.x86_64
[Sun Jun 02 22:24:22.450 2019] ---> Package php-gd.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.450 2019] --> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.40-9.el7.remi.x86_64
[Sun Jun 02 22:24:22.468 2019] --> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.40-9.el7.remi.x86_64
[Sun Jun 02 22:24:22.468 2019] ---> Package php-mbstring.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.468 2019] ---> Package php-mysqlnd.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.468 2019] ---> Package php-pdo.x86_64 0:5.6.40-9.el7.remi will be installed
[Sun Jun 02 22:24:22.468 2019] --> Running transaction check
[Sun Jun 02 22:24:22.468 2019] ---> Package gd-last.x86_64 0:2.2.5-8.el7.remi will be installed
[Sun Jun 02 22:24:22.468 2019] --> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
[Sun Jun 02 22:24:22.476 2019] --> Processing Dependency: libwebp.so.7()(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
[Sun Jun 02 22:24:22.483 2019] ---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 will be installed
[Sun Jun 02 22:24:22.483 2019] ---> Package php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.5.6 will be installed
[Sun Jun 02 22:24:22.483 2019] --> Processing Dependency: libzip5(x86-64) >= 1.5.1 for package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64
[Sun Jun 02 22:24:22.487 2019] --> Processing Dependency: libzip.so.5()(64bit) for package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64
[Sun Jun 02 22:24:22.487 2019] --> Running transaction check
[Sun Jun 02 22:24:22.487 2019] ---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
[Sun Jun 02 22:24:22.487 2019] --> Processing Dependency: freetype >= 2.8-7 for package: fontconfig-2.13.0-4.3.el7.x86_64
[Sun Jun 02 22:24:22.496 2019] --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
[Sun Jun 02 22:24:22.575 2019] --> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
[Sun Jun 02 22:24:22.588 2019] ---> Package libwebp7.x86_64 0:1.0.2-1.el7.remi will be installed
[Sun Jun 02 22:24:22.588 2019] ---> Package libzip5.x86_64 0:1.5.2-1.el7.remi will be installed
[Sun Jun 02 22:24:22.588 2019] --> Running transaction check
[Sun Jun 02 22:24:22.588 2019] ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
[Sun Jun 02 22:24:22.588 2019] --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
[Sun Jun 02 22:24:22.598 2019] ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
[Sun Jun 02 22:24:22.598 2019] ---> Package freetype.x86_64 0:2.4.11-12.el7 will be updated
[Sun Jun 02 22:24:22.598 2019] ---> Package freetype.x86_64 0:2.8-12.el7_6.1 will be an update
[Sun Jun 02 22:24:22.598 2019] --> Running transaction check
[Sun Jun 02 22:24:22.598 2019] ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
[Sun Jun 02 22:24:23.055 2019] --> Finished Dependency Resolution
[Sun Jun 02 22:24:23.271 2019]
[Sun Jun 02 22:24:23.271 2019] Dependencies Resolved
[Sun Jun 02 22:24:23.285 2019]
[Sun Jun 02 22:24:23.285 2019] ================================================================================
[Sun Jun 02 22:24:23.285 2019] Package Arch Version Repository Size
[Sun Jun 02 22:24:23.285 2019] ================================================================================
[Sun Jun 02 22:24:23.285 2019] Installing:
[Sun Jun 02 22:24:23.285 2019] php x86_64 5.6.40-9.el7.remi remi-php56 2.6 M
[Sun Jun 02 22:24:23.285 2019] php-cli x86_64 5.6.40-9.el7.remi remi-php56 4.0 M
[Sun Jun 02 22:24:23.285 2019] php-common x86_64 5.6.40-9.el7.remi remi-php56 1.1 M
[Sun Jun 02 22:24:23.285 2019] php-gd x86_64 5.6.40-9.el7.remi remi-php56 87 k
[Sun Jun 02 22:24:23.285 2019] php-mbstring x86_64 5.6.40-9.el7.remi remi-php56 571 k
[Sun Jun 02 22:24:23.285 2019] php-mysqlnd x86_64 5.6.40-9.el7.remi remi-php56 300 k
[Sun Jun 02 22:24:23.285 2019] php-pdo x86_64 5.6.40-9.el7.remi remi-php56 141 k
[Sun Jun 02 22:24:23.285 2019] Installing for dependencies:
[Sun Jun 02 22:24:23.285 2019] dejavu-fonts-common noarch 2.33-6.el7 base 64 k
[Sun Jun 02 22:24:23.285 2019] dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
[Sun Jun 02 22:24:23.294 2019] fontconfig x86_64 2.13.0-4.3.el7 base 254 k
[Sun Jun 02 22:24:23.294 2019] fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
[Sun Jun 02 22:24:23.294 2019] gd-last x86_64 2.2.5-8.el7.remi remi-safe 134 k
[Sun Jun 02 22:24:23.294 2019] libwebp7 x86_64 1.0.2-1.el7.remi remi-safe 265 k
[Sun Jun 02 22:24:23.294 2019] libzip5 x86_64 1.5.2-1.el7.remi remi-safe 56 k
[Sun Jun 02 22:24:23.294 2019] php-pecl-jsonc x86_64 1.3.10-2.el7.remi.5.6 remi-php56 57 k
[Sun Jun 02 22:24:23.294 2019] php-pecl-zip x86_64 1.15.4-1.el7.remi.5.6 remi-php56 58 k
[Sun Jun 02 22:24:23.294 2019] Updating for dependencies:
[Sun Jun 02 22:24:23.294 2019] freetype x86_64 2.8-12.el7_6.1 updates 380 k
[Sun Jun 02 22:24:23.294 2019]
[Sun Jun 02 22:24:23.294 2019] Transaction Summary
[Sun Jun 02 22:24:23.294 2019] ================================================================================
[Sun Jun 02 22:24:23.294 2019] Install 7 Packages (+9 Dependent packages)
[Sun Jun 02 22:24:23.294 2019] Upgrade ( 1 Dependent package)
[Sun Jun 02 22:24:23.294 2019]
[Sun Jun 02 22:24:23.294 2019] Total download size: 11 M
[Sun Jun 02 22:24:23.294 2019] Is this ok [y/d/N]: y
[Sun Jun 02 22:24:53.274 2019] Downloading packages:
[Sun Jun 02 22:24:53.286 2019] Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
[Sun Jun 02 22:24:53.454 2019] (1/17): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00
[Sun Jun 02 22:24:53.506 2019] (2/17): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00
[Sun Jun 02 22:24:53.580 2019] (3/17): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00
[Sun Jun 02 22:24:53.580 2019] (4/17): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00
[Sun Jun 02 22:24:53.726 2019] warning: /var/cache/yum/x86_64/7/remi-safe/packages/gd-last-2.2.5-8.el7.remi.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
[Sun Jun 02 22:24:53.726 2019] Public key for gd-last-2.2.5-8.el7.remi.x86_64.rpm is not installed
[Sun Jun 02 22:24:53.726 2019] (5/17): gd-last-2.2.5-8.el7.remi.x86_64.rpm | 134 kB 00:00
[Sun Jun 02 22:24:53.767 2019] (6/17): libwebp7-1.0.2-1.el7.remi.x86_64.rpm | 265 kB 00:00
[Sun Jun 02 22:24:53.792 2019] (7/17): libzip5-1.5.2-1.el7.remi.x86_64.rpm | 56 kB 00:00
[Sun Jun 02 22:24:53.795 2019] (8/17): freetype-2.8-12.el7_6.1.x86_64.rpm | 380 kB 00:00
[Sun Jun 02 22:24:54.076 2019] Public key for php-5.6.40-9.el7.remi.x86_64.rpm is not installed
[Sun Jun 02 22:24:54.076 2019] (9/17): php-5.6.40-9.el7.remi.x86_64.rpm | 2.6 MB 00:00
[Sun Jun 02 22:24:54.130 2019] (10/17): php-cli-5.6.40-9.el7.remi.x86_64.rpm | 4.0 MB 00:00
[Sun Jun 02 22:24:54.139 2019] (11/17): php-gd-5.6.40-9.el7.remi.x86_64.rpm | 87 kB 00:00
[Sun Jun 02 22:24:54.161 2019] (12/17): php-common-5.6.40-9.el7.remi.x86_64.rpm | 1.1 MB 00:00
[Sun Jun 02 22:24:54.171 2019] (13/17): php-mbstring-5.6.40-9.el7.remi.x86_64.rpm | 571 kB 00:00
[Sun Jun 02 22:24:54.181 2019] (14/17): php-mysqlnd-5.6.40-9.el7.remi.x86_64.rpm | 300 kB 00:00
[Sun Jun 02 22:24:54.184 2019] (15/17): php-pdo-5.6.40-9.el7.remi.x86_64.rpm | 141 kB 00:00
[Sun Jun 02 22:24:54.215 2019] (16/17): php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64.rpm | 57 kB 00:00
[Sun Jun 02 22:24:54.215 2019] (17/17): php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64.rpm | 58 kB 00:00
[Sun Jun 02 22:24:54.224 2019] --------------------------------------------------------------------------------
[Sun Jun 02 22:24:54.224 2019] Total 12 MB/s | 11 MB 00:00
[Sun Jun 02 22:24:54.224 2019] Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[Sun Jun 02 22:24:54.232 2019] Importing GPG key 0x00F97F56:
[Sun Jun 02 22:24:54.232 2019] Userid : "Remi Collet <RPMS@FamilleCollet.com>"
[Sun Jun 02 22:24:54.232 2019] Fingerprint: 1ee0 4cce 88a4 ae4a a29a 5df5 004e 6f47 00f9 7f56
[Sun Jun 02 22:24:54.232 2019] Package : remi-release-7.6-2.el7.remi.noarch (installed)
[Sun Jun 02 22:24:54.232 2019] From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[Sun Jun 02 22:24:54.232 2019] Is this ok [y/N]: y
[Sun Jun 02 22:25:01.588 2019] Running transaction check
[Sun Jun 02 22:25:01.611 2019] Running transaction test
[Sun Jun 02 22:25:01.725 2019] Transaction test succeeded
[Sun Jun 02 22:25:01.725 2019] Running transaction
[Sun Jun 02 22:25:01.783 2019] Updating : freetype-2.8-12.el7_6.1.x86 [ ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [# ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [#### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [###### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [######## ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [########## ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [############# ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [############### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [################# ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [################### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [###################### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [######################## ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [########################## ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86 [########################### ] 1/18 Updating : freetype-2.8-12.el7_6.1.x86_64 1/18
[Sun Jun 02 22:25:01.914 2019] Installing : fontpackages-filesystem-1.4 [ ] 2/18 Installing : fontpackages-filesystem-1.4 [#### ] 2/18 Installing : fontpackages-filesystem-1.4 [######## ] 2/18 Installing : fontpackages-filesystem-1.4 [############# ] 2/18 Installing : fontpackages-filesystem-1.4 [################### ] 2/18 Installing : fontpackages-filesystem-1.4 [####################### ] 2/18 Installing : fontpackages-filesystem-1.44-8.el7.noarch 2/18
[Sun Jun 02 22:25:01.933 2019] Installing : dejavu-fonts-common-2.33-6. [ ] 3/18 Installing : dejavu-fonts-common-2.33-6. [# ] 3/18 Installing : dejavu-fonts-common-2.33-6. [############### ] 3/18 Installing : dejavu-fonts-common-2.33-6. [################ ] 3/18 Installing : dejavu-fonts-common-2.33-6. [###################### ] 3/18 Installing : dejavu-fonts-common-2.33-6. [########################### ] 3/18 Installing : dejavu-fonts-common-2.33-6.el7.noarch 3/18
[Sun Jun 02 22:25:01.954 2019] Installing : dejavu-sans-fonts-2.33-6.el [ ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [# ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [#### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [##### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [###### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [####### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [######## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [######### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [########## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [########### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [############ ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [############# ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [############## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [############### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [################ ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [################# ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [################## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [#################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [##################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [###################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [####################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [######################## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [######################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [########################## ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el [########################### ] 4/18 Installing : dejavu-sans-fonts-2.33-6.el7.noarch 4/18
[Sun Jun 02 22:25:02.205 2019] Installing : fontconfig-2.13.0-4.3.el7.x [ ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [# ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [## ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [#### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [##### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [####### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [########## ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [############ ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [############### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [################ ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [##################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [###################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [####################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [######################## ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [######################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [########################## ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x [########################### ] 5/18 Installing : fontconfig-2.13.0-4.3.el7.x86_64 5/18
[Sun Jun 02 22:25:03.345 2019] Installing : libzip5-1.5.2-1.el7.remi.x8 [ ] 6/18 Installing : libzip5-1.5.2-1.el7.remi.x8 [################# ] 6/18 Installing : libzip5-1.5.2-1.el7.remi.x8 [########################### ] 6/18 Installing : libzip5-1.5.2-1.el7.remi.x86_64 6/18
[Sun Jun 02 22:25:03.379 2019] Installing : php-pecl-jsonc-1.3.10-2.el7 [ ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [######### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [########### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [##################### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [####################### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [######################## ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [######################### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7 [########################### ] 7/18 Installing : php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 7/18
[Sun Jun 02 22:25:03.407 2019] Installing : php-common-5.6.40-9.el7.rem [ ] 8/18 Installing : php-common-5.6.40-9.el7.rem [# ] 8/18 Installing : php-common-5.6.40-9.el7.rem [## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [#### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [##### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [###### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [####### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [######## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [######### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [########## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [########### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [############ ] 8/18 Installing : php-common-5.6.40-9.el7.rem [############# ] 8/18 Installing : php-common-5.6.40-9.el7.rem [############## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [############### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [################ ] 8/18 Installing : php-common-5.6.40-9.el7.rem [################# ] 8/18 Installing : php-common-5.6.40-9.el7.rem [################## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [#################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [##################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [###################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [####################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [######################## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [######################### ] 8/18 Installing : php-common-5.6.40-9.el7.rem [########################## ] 8/18 Installing : php-common-5.6.40-9.el7.rem [########################### ] 8/18 Installing : php-common-5.6.40-9.el7.remi.x86_64 8/18
[Sun Jun 02 22:25:03.720 2019] Installing : php-pecl-zip-1.15.4-1.el7.r [ ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [######### ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [########## ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [#################### ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [##################### ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [###################### ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.r [########################### ] 9/18 Installing : php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 9/18
[Sun Jun 02 22:25:03.755 2019] Installing : php-cli-5.6.40-9.el7.remi.x [ ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [# ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [#### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [##### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [###### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [####### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [######## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [######### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [########## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [########### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [############ ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [############# ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [############## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [############### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [################ ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [################# ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [################## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [#################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [##################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [###################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [####################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [######################## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [######################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [########################## ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x [########################### ] 10/18 Installing : php-cli-5.6.40-9.el7.remi.x86_64 10/18
[Sun Jun 02 22:25:04.387 2019] Installing : php-pdo-5.6.40-9.el7.remi.x [ ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [#### ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [######## ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [########## ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [############## ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [################## ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [###################### ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [######################## ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x [########################### ] 11/18 Installing : php-pdo-5.6.40-9.el7.remi.x86_64 11/18
[Sun Jun 02 22:25:04.423 2019] Installing : libwebp7-1.0.2-1.el7.remi.x [ ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [## ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [#### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [###### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [######## ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [########### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [############# ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [############### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [################# ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [#################### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [###################### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [######################## ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [########################## ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x [########################### ] 12/18 Installing : libwebp7-1.0.2-1.el7.remi.x86_64 12/18
[Sun Jun 02 22:25:04.487 2019] Installing : gd-last-2.2.5-8.el7.remi.x8 [ ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [#### ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [######## ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [############# ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [################# ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [##################### ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [########################## ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x8 [########################### ] 13/18 Installing : gd-last-2.2.5-8.el7.remi.x86_64 13/18
[Sun Jun 02 22:25:04.533 2019] Installing : php-gd-5.6.40-9.el7.remi.x8 [ ] 14/18 Installing : php-gd-5.6.40-9.el7.remi.x8 [####### ] 14/18 Installing : php-gd-5.6.40-9.el7.remi.x8 [############## ] 14/18 Installing : php-gd-5.6.40-9.el7.remi.x8 [##################### ] 14/18 Installing : php-gd-5.6.40-9.el7.remi.x8 [########################### ] 14/18 Installing : php-gd-5.6.40-9.el7.remi.x86_64 14/18
[Sun Jun 02 22:25:04.563 2019] Installing : php-mysqlnd-5.6.40-9.el7.re [ ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [# ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [#### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [##### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [####### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [######## ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [########## ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [############ ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [############# ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [############## ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [############### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [################# ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [################### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [##################### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [###################### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [######################## ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [########################## ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.re [########################### ] 15/18 Installing : php-mysqlnd-5.6.40-9.el7.remi.x86_64 15/18
[Sun Jun 02 22:25:04.688 2019] Installing : php-5.6.40-9.el7.remi.x86_6 [ ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [# ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [#### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [##### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [###### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [####### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [######## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [######### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [########## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [########### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [############ ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [############# ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [############## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [############### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [################ ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [################# ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [################## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [#################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [##################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [###################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [####################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [######################## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [######################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [########################## ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_6 [########################### ] 16/18 Installing : php-5.6.40-9.el7.remi.x86_64 16/18
[Sun Jun 02 22:25:05.127 2019] Installing : php-mbstring-5.6.40-9.el7.r [ ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [# ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [#### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [##### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [###### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [####### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [######## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [######### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [########## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [########### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [############ ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [############# ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [############## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [############### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [################ ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [################# ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [################## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [#################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [##################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [###################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [####################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [######################## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [######################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [########################## ] 17/18 Installing : php-mbstring-5.6.40-9.el7.r [########################### ] 17/18 Installing : php-mbstring-5.6.40-9.el7.remi.x86_64 17/18
[Sun Jun 02 22:25:05.243 2019] Cleanup : freetype-2.4.11-12.el7.x86_64 18/18
[Sun Jun 02 22:25:05.276 2019] =====================================================================
[Sun Jun 02 22:25:05.276 2019]
[Sun Jun 02 22:25:05.276 2019] WARNING : PHP 5.6 have reached its "End of Life" in
[Sun Jun 02 22:25:05.276 2019] January 2019. Even, if this package includes some of
[Sun Jun 02 22:25:05.276 2019] the important security fix, backported from 7.1, the
[Sun Jun 02 22:25:05.276 2019] UPGRADE to a maintained version is very strongly RECOMMENDED.
[Sun Jun 02 22:25:05.276 2019]
[Sun Jun 02 22:25:05.276 2019] =====================================================================
[Sun Jun 02 22:25:05.298 2019] Verifying : php-mysqlnd-5.6.40-9.el7.remi.x86_64 1/18
[Sun Jun 02 22:25:05.311 2019] Verifying : php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 2/18
[Sun Jun 02 22:25:05.323 2019] Verifying : php-gd-5.6.40-9.el7.remi.x86_64 3/18
[Sun Jun 02 22:25:05.329 2019] Verifying : php-5.6.40-9.el7.remi.x86_64 4/18
[Sun Jun 02 22:25:05.336 2019] Verifying : fontconfig-2.13.0-4.3.el7.x86_64 5/18
[Sun Jun 02 22:25:05.342 2019] Verifying : php-common-5.6.40-9.el7.remi.x86_64 6/18
[Sun Jun 02 22:25:05.350 2019] Verifying : libwebp7-1.0.2-1.el7.remi.x86_64 7/18
[Sun Jun 02 22:25:05.358 2019] Verifying : dejavu-fonts-common-2.33-6.el7.noarch 8/18
[Sun Jun 02 22:25:05.362 2019] Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 9/18
[Sun Jun 02 22:25:05.367 2019] Verifying : freetype-2.8-12.el7_6.1.x86_64 10/18
[Sun Jun 02 22:25:05.375 2019] Verifying : libzip5-1.5.2-1.el7.remi.x86_64 11/18
[Sun Jun 02 22:25:05.382 2019] Verifying : gd-last-2.2.5-8.el7.remi.x86_64 12/18
[Sun Jun 02 22:25:05.391 2019] Verifying : php-cli-5.6.40-9.el7.remi.x86_64 13/18
[Sun Jun 02 22:25:05.397 2019] Verifying : php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 14/18
[Sun Jun 02 22:25:05.403 2019] Verifying : php-mbstring-5.6.40-9.el7.remi.x86_64 15/18
[Sun Jun 02 22:25:05.409 2019] Verifying : fontpackages-filesystem-1.44-8.el7.noarch 16/18
[Sun Jun 02 22:25:05.416 2019] Verifying : php-pdo-5.6.40-9.el7.remi.x86_64 17/18
[Sun Jun 02 22:25:05.432 2019] Verifying : freetype-2.4.11-12.el7.x86_64 18/18
[Sun Jun 02 22:25:05.531 2019]
[Sun Jun 02 22:25:05.531 2019] Installed:
[Sun Jun 02 22:25:05.531 2019] php.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.531 2019] php-cli.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.531 2019] php-common.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.531 2019] php-gd.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.531 2019] php-mbstring.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.532 2019] php-mysqlnd.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.532 2019] php-pdo.x86_64 0:5.6.40-9.el7.remi
[Sun Jun 02 22:25:05.532 2019]
[Sun Jun 02 22:25:05.532 2019] Dependency Installed:
[Sun Jun 02 22:25:05.532 2019] dejavu-fonts-common.noarch 0:2.33-6.el7
[Sun Jun 02 22:25:05.532 2019] dejavu-sans-fonts.noarch 0:2.33-6.el7
[Sun Jun 02 22:25:05.532 2019] fontconfig.x86_64 0:2.13.0-4.3.el7
[Sun Jun 02 22:25:05.532 2019] fontpackages-filesystem.noarch 0:1.44-8.el7
[Sun Jun 02 22:25:05.532 2019] gd-last.x86_64 0:2.2.5-8.el7.remi
[Sun Jun 02 22:25:05.537 2019] libwebp7.x86_64 0:1.0.2-1.el7.remi
[Sun Jun 02 22:25:05.537 2019] libzip5.x86_64 0:1.5.2-1.el7.remi
[Sun Jun 02 22:25:05.537 2019] php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6
[Sun Jun 02 22:25:05.537 2019] php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.5.6
[Sun Jun 02 22:25:05.537 2019]
[Sun Jun 02 22:25:05.537 2019] Dependency Updated:
[Sun Jun 02 22:25:05.537 2019] freetype.x86_64 0:2.8-12.el7_6.1
[Sun Jun 02 22:25:05.537 2019]
[Sun Jun 02 22:25:05.537 2019] Complete!
ちゃんとEOLに到達しているって警告メッセージが出るんですね。
PHPの設定ファイルを編集
この辺はお使いの環境に合わせて。
今回はアップロード可能なファイルサイズ上限を128MBに変更するだけです。
cd /etc
sudo cp php.ini php.ini.`date "+%Y%m%d"`_01
sudo vi php.ini
# upload_max_filesize、post_max_sizeを書き換える
post_max_size = 128M
upload_max_filesize = 128M
差分チェック。
$ sudo diff php.ini php.ini.20190602_01
[Sun Jun 02 22:31:21.696 2019] [user@server etc]$ sudo diff php.ini php.ini.20190602_01
[Sun Jun 02 22:31:38.973 2019] 663c663
[Sun Jun 02 22:31:38.973 2019] < post_max_size = 128M
[Sun Jun 02 22:31:38.973 2019] ---
[Sun Jun 02 22:31:38.973 2019] > post_max_size = 8M
[Sun Jun 02 22:31:38.973 2019] 811c811
[Sun Jun 02 22:31:38.973 2019] < upload_max_filesize = 128M
[Sun Jun 02 22:31:38.973 2019] ---
[Sun Jun 02 22:31:38.973 2019] > upload_max_filesize = 2M
WebServer起動@Apache
$ sudo systemctl status httpd
$ sudo systemctl start httpd
$ sudo systemctl status httpd
[Sun Jun 02 22:32:04.941 2019] [user@server etc]$ sudo systemctl status httpd
[Sun Jun 02 22:32:07.754 2019] ● httpd.service - The Apache HTTP Server
[Sun Jun 02 22:32:07.754 2019] Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
[Sun Jun 02 22:32:07.754 2019] Active: inactive (dead) since Sun 2019-06-02 22:20:58 JST; 11min ago
[Sun Jun 02 22:32:07.754 2019] Docs: man:httpd(8)
[Sun Jun 02 22:32:07.754 2019] man:apachectl(8)
[Sun Jun 02 22:32:07.754 2019] Process: 3091 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:32:07.754 2019] Process: 879 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:32:07.754 2019] Main PID: 879 (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:32:07.754 2019] Status: "Total requests: 12; Current requests/sec: 0; Current traffic: 0 B/sec"
[Sun Jun 02 22:32:07.754 2019]
[Sun Jun 02 22:32:07.754 2019] Jun 02 20:41:39 server systemd[1]: Starting The Apache HTTP Server...
[Sun Jun 02 22:32:07.754 2019] Jun 02 20:41:40 server systemd[1]: Started The Apache HTTP Server.
[Sun Jun 02 22:32:07.754 2019] Jun 02 22:20:57 server systemd[1]: Stopping The Apache HTTP Server...
[Sun Jun 02 22:32:07.754 2019] Jun 02 22:20:58 server systemd[1]: Stopped The Apache HTTP Server.
[Sun Jun 02 22:32:07.754 2019] [user@server etc]$
[Sun Jun 02 22:32:10.297 2019] [user@server etc]$
[Sun Jun 02 22:32:17.023 2019] [user@server etc]$ sudo systemctl start httpd
[Sun Jun 02 22:32:19.923 2019] [user@server etc]$
[Sun Jun 02 22:32:21.232 2019] [user@server etc]$
[Sun Jun 02 22:32:21.402 2019] [user@server etc]$ sudo systemctl status httpd
[Sun Jun 02 22:32:27.347 2019] ● httpd.service - The Apache HTTP Server
[Sun Jun 02 22:32:27.347 2019] Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
[Sun Jun 02 22:32:27.347 2019] Active: active (running) since Sun 2019-06-02 22:32:11 JST; 7s ago
[Sun Jun 02 22:32:27.347 2019] Docs: man:httpd(8)
[Sun Jun 02 22:32:27.347 2019] man:apachectl(8)
[Sun Jun 02 22:32:27.347 2019] Process: 3091 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
[Sun Jun 02 22:32:27.347 2019] Main PID: 3213 (httpd)
[Sun Jun 02 22:32:27.347 2019] Status: "Processing requests..."
[Sun Jun 02 22:32:27.347 2019] CGroup: /system.slice/httpd.service
[Sun Jun 02 22:32:27.347 2019] tq3213 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019] tq3214 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019] tq3215 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019] tq3216 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019] tq3217 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019] mq3218 /usr/sbin/httpd -DFOREGROUND
[Sun Jun 02 22:32:27.347 2019]
[Sun Jun 02 22:32:27.347 2019] Jun 02 22:32:11 server systemd[1]: Starting The Apache HTTP Server...
[Sun Jun 02 22:32:27.347 2019] Jun 02 22:32:11 server systemd[1]: Started The Apache HTTP Server.
動作とバージョン確認
まずはバージョン確認。
$ php -v
[Sun Jun 02 22:32:42.936 2019] [user@server etc]$ php -v
[Sun Jun 02 22:32:44.995 2019] PHP 5.6.40 (cli) (built: May 28 2019 10:47:03)
[Sun Jun 02 22:32:44.995 2019] Copyright (c) 1997-2016 The PHP Group
[Sun Jun 02 22:32:44.995 2019] Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
無事5.6.40になりました。
お次はphpinfoで動作確認。
以下のようなファイルを作成して、UTF-8N形式+改行コードLFで保存。
ドキュメントルートにアップロードします。
<?php
phpinfo();
?>
アクセス権を変更。
$ sudo chown apache:apache test.php
$ sudo chmod 755 test.php
ブラウザでhttp://[domain-name]/test.phpにアクセスします。
無事phpinfoが見れました。
見れたら即効で削除。
やっとWordPressを5.2.1にバージョンアップ
念願の「今すぐ更新」ボタンが表示されました。
あとはいつも通りバージョンアップ。
無事5.2.1にバージョンアップ出来ました。