
目次
前回の振り返り
firewalldの設定
epelリポジトリとremiリポジトリのインストール
nghttp2とApache(2.4.38)のインストール
PHPのインストール
前回の振り返り
引き続きミドルウェアのインストールをおこなっていきたいと思いますが、その前にファイヤーウォールの設定をしたいと思います。
firewalldの設定
ファイアウォールの設定についてはiptablesをインストールして使用することも可能ですがCentOS7からfirewalldでおこなうのが標準のようです。
また、iptablesとの大きな違いというと、設定の変更時に通信を停止させることなく変更した設定を反映できるとのことで今回はfirewalldで設定します。
まずはfirewalldの状態を確認します。
[root@localhost ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: active (running) since 金 2018-12-14 16:48:01 JST; 3 days ago Docs: man:firewalld(1) Main PID: 2930 (firewalld) CGroup: /system.slice/firewalld.service mq2930 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid 12月 14 16:48:00 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon... 12月 14 16:48:01 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
状態は「 active (running) 」となっていますね
では続いて設定されている内容を確認します。
[root@localhost ~]# firewall-cmd --zone=public --list-services --permanent ssh dhcpv6-client
標準でsshとdhcpv6-clientというサービスが許可されています。
※ 「zone」オプションで指定している値の「public」はeth0に紐付いているゾーンです。
以下のコマンドでゾーンに紐づいているNICの確認が出来ます。
[root@localhost ~]# firewall-cmd --get-active-zones public interfaces: eth0
では、今回許可をしないといけないhttpとhttpsの許可を登録していきます。
firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https
※ 「permanent」オプションで恒久的な設定として登録できます。
許可設定を登録しましたら設定を反映するためにreloadを実行します。
firewall-cmd --reload
改めて設定内容を見てみると「http」と「https」が追加されていることが確認出来ました。
[root@localhost ~]# firewall-cmd --zone=public --list-services --permanent ssh dhcpv6-client http https
とてもシンプルですね。
今回はこれでファイヤーウォールの設定は完了です。
epelリポジトリとremiリポジトリのインストール
PHP7系のインストールをするにはremiリポジトリが必要です。また、remiリポジトリをインストールするにはepelリポジトリが必要なためまずはepelリポジトリのインストールをします。
[root@localhost ~]# yum -y install epel-release 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 mariadb | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/2): extras/7/x86_64/primary_db | 156 kB 00:00:00 (2/2): updates/7/x86_64/primary_db | 1.3 MB 00:00:00 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ epel-release.noarch 0:7-11 を インストール --> 依存性解決を終了しました。 依存性を解決しました ========================================================================================================================================================================================= Package アーキテクチャー バージョン リポジトリー 容量 ========================================================================================================================================================================================= インストール中: epel-release noarch 7-11 extras 15 k トランザクションの要約 ========================================================================================================================================================================================= インストール 1 パッケージ 総ダウンロード容量: 15 k インストール容量: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : epel-release-7-11.noarch 1/1 検証中 : epel-release-7-11.noarch 1/1 インストール: epel-release.noarch 0:7-11 完了しました!
続いてepelリポジトリを使用する際に混同しないように「enablerepo」のオプションを付けないといけないように設定します。「epel」の「enabled=1」となっている箇所を「enabled=0」に変更します。
vi /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 7 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1
※「epel-debuginfo」と「epel-source」は初期値で「enabled=0」となっていましたのでそのままで大丈夫です。
そしてremiリポジトリを「rpm」コマンドでインストールします。
[root@localhost ~]# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi [root@localhost ~]# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm http://rpms.famillecollet.com/enterprise/remi-release-7.rpm を取得中 準備しています... ################################# [100%] 更新中 / インストール中... 1:remi-release-7.5-2.el7.remi ################################# [100%]
「remi-php73.repo」が「/etc/yum.repos.d」ディレクトリに作成されたか確認します。
[root@localhost ~]# ls -l /etc/yum.repos.d 合計 84 -rw-r--r-- 1 root root 1664 11月 23 22:16 CentOS-Base.repo -rw-r--r-- 1 root root 1309 11月 23 22:16 CentOS-CR.repo -rw-r--r-- 1 root root 649 11月 23 22:16 CentOS-Debuginfo.repo -rw-r--r-- 1 root root 630 11月 23 22:16 CentOS-Media.repo -rw-r--r-- 1 root root 1331 11月 23 22:16 CentOS-Sources.repo -rw-r--r-- 1 root root 5701 11月 23 22:16 CentOS-Vault.repo -rw-r--r-- 1 root root 314 11月 23 22:16 CentOS-fasttrack.repo -rw-r--r-- 1 root root 1050 10月 3 2017 epel-testing.repo -rw-r--r-- 1 root root 951 12月 17 20:21 epel.repo -rw-r--r-- 1 root root 261 12月 6 11:45 mariadb.repo -rw-r--r-- 1 root root 446 6月 19 17:28 remi-glpi91.repo -rw-r--r-- 1 root root 446 6月 19 17:28 remi-glpi92.repo -rw-r--r-- 1 root root 446 6月 19 17:28 remi-glpi93.repo -rw-r--r-- 1 root root 456 6月 19 17:28 remi-php54.repo -rw-r--r-- 1 root root 1314 6月 19 17:28 remi-php70.repo -rw-r--r-- 1 root root 1314 6月 19 17:28 remi-php71.repo -rw-r--r-- 1 root root 1314 6月 19 17:28 remi-php72.repo -rw-r--r-- 1 root root 1314 6月 19 17:28 remi-php73.repo -rw-r--r-- 1 root root 750 6月 19 17:28 remi-safe.repo -rw-r--r-- 1 root root 2605 6月 19 17:28 remi.repo
epelリポジトリと同様でインストール時にリポジトリを混同しないために「enablerepo=remi」オプションを付けるようにしたいので「remi-php73.repo」の内容を確認します。
[root@localhost ~]# cat /etc/yum.repos.d/remi-php73.repo
# This repository only provides PHP 7.3 and its extensions # NOTICE: common dependencies are in "remi-safe" [remi-php73] name=Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/7/php73/$basearch/ #mirrorlist=https://rpms.remirepo.net/enterprise/7/php73/httpsmirror mirrorlist=http://cdn.remirepo.net/enterprise/7/php73/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-php73-debuginfo] name=Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - $basearch - debuginfo baseurl=http://rpms.remirepo.net/enterprise/7/debug-php73/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-php73-test] name=Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/7/test73/$basearch/ #mirrorlist=https://rpms.remirepo.net/enterprise/7/test73/httpsmirror mirrorlist=http://cdn.remirepo.net/enterprise/7/test73/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-php73-test-debuginfo] name=Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo baseurl=http://rpms.remirepo.net/enterprise/7/debug-test73/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
初期値で「enabled=0」となっていますので大丈夫そうですね。
nghttp2とApache(2.4.38)のインストール
Apacheのインストールを実行します。
Apacheバージョン | Apache/2.4.38 (IUS) |
まずはnghttp2をインストールします。
[root@localhost ~]# yum --enablerepo=epel install nghttp2
続いて最新(2.4.38)のApacheをインストールするためにIUSリポジトリもインストールします。
[root@localhost ~]# yum install https://centos7.iuscommunity.org/ius-release.rpm
また、デフォルトではIUSリポジトリを無効化にしておきます。
[root@localhost ~]# vi /etc/yum.repos.d/ius.repo
[ius] name=IUS Community Packages for Enterprise Linux 7 - $basearch #baseurl=https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/$basearch mirrorlist=https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos7&arch=$basearch&protocol=http failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY [ius-debuginfo] name=IUS Community Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/$basearch/debuginfo mirrorlist=https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos7-debuginfo&arch=$basearch&protocol=http failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY [ius-source] name=IUS Community Packages for Enterprise Linux 7 - $basearch - Source #baseurl=https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/SRPMS mirrorlist=https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos7-source&arch=source&protocol=http failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
では、IUSリポジトリを使用してApacheをインストールしていきます。
[root@localhost ~]# yum install httpd --disablerepo=base --disablerepo=updates --enablerepo=ius
[root@localhost conf.d]# yum install httpd --disablerepo=base --disablerepo=updates --enablerepo=ius 読み込んだプラグイン:fastestmirror, langpacks Loading mirror speeds from cached hostfile * extras: ftp.tsukuba.wide.ad.jp * ius: hkg.mirror.rackspace.com * remi-safe: ftp.riken.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ httpd24u.x86_64 0:2.4.38-1.ius.centos7 を インストール --> 依存性の処理をしています: httpd24u-tools = 2.4.38-1.ius.centos7 のパッケージ: httpd24u-2.4.38-1.ius.centos7.x86_64 --> 依存性の処理をしています: httpd24u-filesystem = 2.4.38-1.ius.centos7 のパッケージ: httpd24u-2.4.38-1.ius.centos7.x86_64 --> 依存性の処理をしています: httpd24u-filesystem = 2.4.38-1.ius.centos7 のパッケージ: httpd24u-2.4.38-1.ius.centos7.x86_64 --> 依存性の処理をしています: libapr15u-1.so.0()(64bit) のパッケージ: httpd24u-2.4.38-1.ius.centos7.x86_64 --> 依存性の処理をしています: libapr15uutil-1.so.0()(64bit) のパッケージ: httpd24u-2.4.38-1.ius.centos7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ apr15u.x86_64 0:1.5.2-2.ius.centos7 を インストール ---> パッケージ apr15u-util.x86_64 0:1.5.4-3.ius.centos7 を インストール ---> パッケージ httpd24u-filesystem.noarch 0:2.4.38-1.ius.centos7 を インストール ---> パッケージ httpd24u-tools.x86_64 0:2.4.38-1.ius.centos7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ======================================================================================================================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ======================================================================================================================================================================== インストール中: httpd24u x86_64 2.4.38-1.ius.centos7 ius 1.4 M 依存性関連でのインストールをします: apr15u x86_64 1.5.2-2.ius.centos7 ius 111 k apr15u-util x86_64 1.5.4-3.ius.centos7 ius 92 k httpd24u-filesystem noarch 2.4.38-1.ius.centos7 ius 26 k httpd24u-tools x86_64 2.4.38-1.ius.centos7 ius 89 k トランザクションの要約 ======================================================================================================================================================================== インストール 1 パッケージ (+4 個の依存関係のパッケージ) 総ダウンロード容量: 1.7 M インストール容量: 4.9 M Is this ok [y/d/N]: y Downloading packages: (2/5): apr15u-util-1.5.4-3.ius.centos7.x86_64.rpm 0% [ ] 0.0 B/s | 0 B apr15u-1.5.2-2.ius.centos7.x86_64.rpm の公開鍵がインストールされていません (1/5): apr15u-1.5.2-2.ius.centos7.x86_64.rpm | 111 kB (3/5): httpd24u-2.4.38-1.ius.centos7.x86_64.rpm 6% [===- ] 0.0 B/s | 111 kB (4/5): httpd24u-2.4.38-1.ius.centos7.x86_64.rpm 15% [========- ] 230 kB/s | 264 kB (4/5): apr15u-util-1.5.4-3.ius.centos7.x86_64.rpm 57% [================================== ] 360 kB/s | 1.0 MB (5/5): apr15u-util-1.5.4-3.ius.centos7.x86_64.rpm | 92 kB ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 合計 908 kB/s | 1.7 MB 00:00:01 file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY から鍵を取得中です。 (省略) 上記の処理を行います。よろしいでしょうか? [y/N]y Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : apr15u-1.5.2-2.ius.centos7.x86_64 [ ] 1/5 インストール中 : apr15u-util-1.5.4-3.ius.centos7.x86_64 [ ] 2/5 インストール中 : httpd24u-tools-2.4.38-1.ius.centos7.x86_64 [ ] 3/5 インストール中 : httpd24u-filesystem-2.4.38-1.ius.centos7.noarch [ ] 4/5 インストール中 : httpd24u-2.4.38-1.ius.centos7.x86_64 [ ] 5/5 検証中 : apr15u-util-1.5.4-3.ius.centos7.x86_64 1/5 検証中 : httpd24u-2.4.38-1.ius.centos7.x86_64 2/5 検証中 : apr15u-1.5.2-2.ius.centos7.x86_64 3/5 検証中 : httpd24u-filesystem-2.4.38-1.ius.centos7.noarch 4/5 検証中 : httpd24u-tools-2.4.38-1.ius.centos7.x86_64 5/5 インストール: httpd24u.x86_64 0:2.4.38-1.ius.centos7 依存性関連をインストールしました: apr15u.x86_64 0:1.5.2-2.ius.centos7 apr15u-util.x86_64 0:1.5.4-3.ius.centos7 httpd24u-filesystem.noarch 0:2.4.38-1.ius.centos7 httpd24u-tools.x86_64 0:2.4.38-1.ius.centos7 完了しました!
[root@localhost conf]# httpd -v Server version: Apache/2.4.38 (IUS) Server built: Mar 11 2019 10:30:47
無事Apache2.4.38がインストール出来ました。あとは自動起動だけ忘れずにしましょう
[root@localhost ~]# systemctl enable httpd.service
PHPのインストール
それではさきほど、epelリポジトリ、remiリポジトリを追加したので、今回のメインのPHPをインストールしたいと思います。バージョンはphp73にしたいと思います。
wordpressのシステムの要件にもphp7.2以上(2018年12月現在)と記載されているので問題ないことを願いつつさっそくインストールします。
今回インストールするモジュールは以下です。
- php
- php-devel
- php-mbstring
- php-pdo
- php-gd
- php-pear
- php-fpm
- php-pecl-mcrypt
- php-mysqlnd
- php-opcache
- php-pecl-apcu
- php-xml
yum install --enablerepo=epel,remi-php73 php php-devel php-mbstring php-pdo php-gd php-pear php-fpm php-pecl-mcrypt php-mysqlnd php-opcache php-pecl-apcu php-xml
読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: ftp.riken.jp * extras: ftp-srv2.kddilabs.jp * remi-php73: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp-srv2.kddilabs.jp 依存性の解決をしています (省略) 依存性解決を終了しました。 依存性を解決しました ========================================================================================================================================================================================= Package アーキテクチャー バージョン リポジトリー 容量 ========================================================================================================================================================================================= インストール中: php x86_64 7.3.0-1.el7.remi remi-php73 3.2 M php-devel x86_64 7.3.0-1.el7.remi remi-php73 1.2 M php-fpm x86_64 7.3.0-1.el7.remi remi-php73 1.7 M php-gd x86_64 7.3.0-1.el7.remi remi-php73 77 k php-mbstring x86_64 7.3.0-1.el7.remi remi-php73 648 k php-mysqlnd x86_64 7.3.0-1.el7.remi remi-php73 230 k php-opcache x86_64 7.3.0-1.el7.remi remi-php73 303 k php-pdo x86_64 7.3.0-1.el7.remi remi-php73 124 k php-pear noarch 1:1.10.7-1.el7.remi remi-php73 357 k php-pecl-apcu x86_64 5.1.15-1.el7.remi.7.3 remi-php73 74 k php-pecl-mcrypt x86_64 1.0.1-8.el7.remi.7.3 remi-php73 29 k php-xml x86_64 7.3.0-1.el7.remi remi-php73 204 k 依存性関連でのインストールをします: autoconf noarch 2.69-11.el7 base 701 k automake noarch 1.13.4-3.el7 base 679 k cpp x86_64 4.8.5-36.el7 base 5.9 M dejavu-fonts-common noarch 2.33-6.el7 base 64 k dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M fontconfig x86_64 2.13.0-4.3.el7 base 254 k fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k gcc x86_64 4.8.5-36.el7 base 16 M gcc-c++ x86_64 4.8.5-36.el7 base 7.2 M gd-last x86_64 2.2.5-5.el7.remi remi-safe 134 k glibc-devel x86_64 2.17-260.el7 base 1.1 M glibc-headers x86_64 2.17-260.el7 base 683 k jbigkit-libs x86_64 2.0-11.el7 base 46 k kernel-headers x86_64 3.10.0-957.1.3.el7 updates 8.0 M libX11 x86_64 1.6.5-2.el7 base 606 k libX11-common noarch 1.6.5-2.el7 base 164 k libXau x86_64 1.0.8-2.1.el7 base 29 k libXpm x86_64 3.5.12-1.el7 base 55 k libargon2 x86_64 20161029-2.el7 epel 23 k libjpeg-turbo x86_64 1.2.90-6.el7 base 134 k libmcrypt x86_64 2.5.8-13.el7 epel 99 k libmpc x86_64 1.0.1-3.el7 base 51 k libstdc++-devel x86_64 4.8.5-36.el7 base 1.5 M libtiff x86_64 4.0.3-27.el7_3 base 170 k libtool x86_64 2.4.2-22.el7_3 base 588 k libwebp x86_64 0.3.0-7.el7 base 170 k libxcb x86_64 1.13-1.el7 base 214 k libxslt x86_64 1.1.28-5.el7 base 242 k m4 x86_64 1.4.16-10.el7 base 256 k mpfr x86_64 3.1.1-4.el7 base 203 k perl-Test-Harness noarch 3.28-3.el7 base 302 k perl-Thread-Queue noarch 3.02-2.el7 base 17 k php-cli x86_64 7.3.0-1.el7.remi remi-php73 4.9 M php-common x86_64 7.3.0-1.el7.remi remi-php73 1.1 M php-fedora-autoloader noarch 1.0.0-1.el7 epel 9.6 k php-json x86_64 7.3.0-1.el7.remi remi-php73 62 k php-process x86_64 7.3.0-1.el7.remi remi-php73 79 k トランザクションの要約 ========================================================================================================================================================================================= インストール 12 パッケージ (+37 個の依存関係のパッケージ) 総ダウンロード容量: 61 M インストール容量: 166 M Is this ok [y/d/N]: y Downloading packages: (1/49): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:00 (省略) (49/49): php-cli-7.3.0-1.el7.remi.x86_64.rpm | 4.9 MB 00:01:26 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 合計 672 kB/s | 61 MB 00:01:33 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 から鍵を取得中です。 Importing GPG key 0x352C64E5: Userid : Fedora EPEL (7) epel@fedoraproject.org Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 上記の処理を行います。よろしいでしょうか? [y/N]y Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : php-json-7.3.0-1.el7.remi.x86_64 1/49 インストール中 : php-common-7.3.0-1.el7.remi.x86_64 2/49 インストール中 : mpfr-3.1.1-4.el7.x86_64 3/49 インストール中 : libmpc-1.0.1-3.el7.x86_64 4/49 インストール中 : libargon2-20161029-2.el7.x86_64 5/49 インストール中 : php-cli-7.3.0-1.el7.remi.x86_64 6/49 インストール中 : libjpeg-turbo-1.2.90-6.el7.x86_64 7/49 インストール中 : fontpackages-filesystem-1.44-8.el7.noarch 8/49 インストール中 : dejavu-fonts-common-2.33-6.el7.noarch 9/49 インストール中 : dejavu-sans-fonts-2.33-6.el7.noarch 10/49 インストール中 : fontconfig-2.13.0-4.3.el7.x86_64 11/49 インストール中 : cpp-4.8.5-36.el7.x86_64 12/49 インストール中 : php-process-7.3.0-1.el7.remi.x86_64 13/49 インストール中 : php-fedora-autoloader-1.0.0-1.el7.noarch 14/49 インストール中 : php-pdo-7.3.0-1.el7.remi.x86_64 15/49 インストール中 : perl-Test-Harness-3.28-3.el7.noarch 16/49 インストール中 : libstdc++-devel-4.8.5-36.el7.x86_64 17/49 インストール中 : libX11-common-1.6.5-2.el7.noarch 18/49 インストール中 : libXau-1.0.8-2.1.el7.x86_64 19/49 インストール中 : libxcb-1.13-1.el7.x86_64 20/49 インストール中 : libX11-1.6.5-2.el7.x86_64 21/49 インストール中 : libXpm-3.5.12-1.el7.x86_64 22/49 インストール中 : jbigkit-libs-2.0-11.el7.x86_64 23/49 インストール中 : libtiff-4.0.3-27.el7_3.x86_64 24/49 インストール中 : kernel-headers-3.10.0-957.1.3.el7.x86_64 25/49 インストール中 : glibc-headers-2.17-260.el7.x86_64 26/49 インストール中 : glibc-devel-2.17-260.el7.x86_64 27/49 インストール中 : gcc-4.8.5-36.el7.x86_64 28/49 インストール中 : gcc-c++-4.8.5-36.el7.x86_64 29/49 インストール中 : libxslt-1.1.28-5.el7.x86_64 30/49 インストール中 : php-xml-7.3.0-1.el7.remi.x86_64 31/49 インストール中 : libwebp-0.3.0-7.el7.x86_64 32/49 インストール中 : gd-last-2.2.5-5.el7.remi.x86_64 33/49 インストール中 : perl-Thread-Queue-3.02-2.el7.noarch 34/49 インストール中 : libmcrypt-2.5.8-13.el7.x86_64 35/49 インストール中 : m4-1.4.16-10.el7.x86_64 36/49 インストール中 : autoconf-2.69-11.el7.noarch 37/49 インストール中 : automake-1.13.4-3.el7.noarch 38/49 インストール中 : libtool-2.4.2-22.el7_3.x86_64 39/49 インストール中 : php-devel-7.3.0-1.el7.remi.x86_64 40/49 インストール中 : php-pecl-mcrypt-1.0.1-8.el7.remi.7.3.x86_64 41/49 インストール中 : php-gd-7.3.0-1.el7.remi.x86_64 42/49 インストール中 : 1:php-pear-1.10.7-1.el7.remi.noarch 43/49 インストール中 : php-mysqlnd-7.3.0-1.el7.remi.x86_64 44/49 インストール中 : php-7.3.0-1.el7.remi.x86_64 45/49 インストール中 : php-fpm-7.3.0-1.el7.remi.x86_64 46/49 インストール中 : php-mbstring-7.3.0-1.el7.remi.x86_64 47/49 インストール中 : php-pecl-apcu-5.1.15-1.el7.remi.7.3.x86_64 48/49 インストール中 : php-opcache-7.3.0-1.el7.remi.x86_64 49/49 検証中 : libtiff-4.0.3-27.el7_3.x86_64 1/49 (省略) 検証中 : php-mysqlnd-7.3.0-1.el7.remi.x86_64 49/49 インストール: php.x86_64 0:7.3.0-1.el7.remi php-devel.x86_64 0:7.3.0-1.el7.remi php-fpm.x86_64 0:7.3.0-1.el7.remi php-gd.x86_64 0:7.3.0-1.el7.remi php-mbstring.x86_64 0:7.3.0-1.el7.remi php-mysqlnd.x86_64 0:7.3.0-1.el7.remi php-opcache.x86_64 0:7.3.0-1.el7.remi php-pdo.x86_64 0:7.3.0-1.el7.remi php-pear.noarch 1:1.10.7-1.el7.remi php-pecl-apcu.x86_64 0:5.1.15-1.el7.remi.7.3 php-pecl-mcrypt.x86_64 0:1.0.1-8.el7.remi.7.3 php-xml.x86_64 0:7.3.0-1.el7.remi 依存性関連をインストールしました: autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7 cpp.x86_64 0:4.8.5-36.el7 dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 gcc.x86_64 0:4.8.5-36.el7 gcc-c++.x86_64 0:4.8.5-36.el7 gd-last.x86_64 0:2.2.5-5.el7.remi glibc-devel.x86_64 0:2.17-260.el7 glibc-headers.x86_64 0:2.17-260.el7 jbigkit-libs.x86_64 0:2.0-11.el7 kernel-headers.x86_64 0:3.10.0-957.1.3.el7 libX11.x86_64 0:1.6.5-2.el7 libX11-common.noarch 0:1.6.5-2.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.12-1.el7 libargon2.x86_64 0:20161029-2.el7 libjpeg-turbo.x86_64 0:1.2.90-6.el7 libmcrypt.x86_64 0:2.5.8-13.el7 libmpc.x86_64 0:1.0.1-3.el7 libstdc++-devel.x86_64 0:4.8.5-36.el7 libtiff.x86_64 0:4.0.3-27.el7_3 libtool.x86_64 0:2.4.2-22.el7_3 libwebp.x86_64 0:0.3.0-7.el7 libxcb.x86_64 0:1.13-1.el7 libxslt.x86_64 0:1.1.28-5.el7 m4.x86_64 0:1.4.16-10.el7 mpfr.x86_64 0:3.1.1-4.el7 perl-Test-Harness.noarch 0:3.28-3.el7 perl-Thread-Queue.noarch 0:3.02-2.el7 php-cli.x86_64 0:7.3.0-1.el7.remi php-common.x86_64 0:7.3.0-1.el7.remi php-fedora-autoloader.noarch 0:1.0.0-1.el7 php-json.x86_64 0:7.3.0-1.el7.remi php-process.x86_64 0:7.3.0-1.el7.remi 完了しました!
インストールが完了したのでバージョンを確認してみます。
[root@localhost ~]# php -v PHP 7.3.0 (cli) (built: Dec 4 2018 16:12:20) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies
これでApacheとPHPのインストールは完了です。
今回は色々とインストールしましたが、順調にインストールできました。(ちょっとホッとしてます)
「php-opcache」や「php-pecl-apcu」などのキャッシュ系の拡張モジュールも必須では無いのですが入れてみました。
環境が一通り整ったら速度検証なども出来たら載せたいなという願いを込めてます。
さて、次回はインストールしたミドルウェアの設定をしていきたいと思います。