まずはPHPがインストールしていないかパッケージを確認してみましょう
下記のコマンドを実行します。
yum list installed | grep php
何も出力されなければPHPがインストールされていません。
もしPHPがインストールしていた場合は下記のコマンドでPHPを削除します。
yum remove php*
Centos7 REMIリポジトリーをインストールします
下記のコマンドを実行します
yum -y install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 7.9 kB 00:00
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
base | 3.6 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
Resolving Dependencies
–> Running transaction check
—> Package epel-release.noarch 0:7-11 will be updated
—> Package epel-release.noarch 0:7-14 will be an update
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
epel-release noarch 7-14 epel 15 kTransaction Summary
================================================================================
Upgrade 1 PackageTotal download size: 15 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
epel-release-7-14.noarch.rpm | 15 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : epel-release-7-14.noarch 1/2
Cleanup : epel-release-7-11.noarch 2/2
Verifying : epel-release-7-14.noarch 1/2
Verifying : epel-release-7-11.noarch 2/2Updated:
epel-release.noarch 0:7-14Complete!
Complete! 完了しましたので次に進みます
RPMパッケージをインストールします
下記のコマンドを実行します
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
warning: /var/tmp/rpm-tmp.Hzt7E2: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing… ################################# [100%]
Updating / installing…
1:remi-release-7.9-4.el7.remi ################################# [100%]
[root@localhost html]#
RPMパッケージで何がインストールされたかを確認しましょう。
下記のコマンドを実行します
ls リストコマンドでフォルダー内のファイル一覧を確認します
ls -la /etc/yum.repos.d
total 112
drwxr-xr-x. 2 root root 4096 Nov 22 11:35 .
drwxr-xr-x. 80 root root 8192 Nov 22 11:18 ..
-rw-r–r–. 1 root root 1664 Nov 23 2020 CentOS-Base.repo
-rw-r–r–. 1 root root 1309 Nov 23 2020 CentOS-CR.repo
-rw-r–r–. 1 root root 649 Nov 23 2020 CentOS-Debuginfo.repo
-rw-r–r–. 1 root root 314 Nov 23 2020 CentOS-fasttrack.repo
-rw-r–r–. 1 root root 630 Nov 23 2020 CentOS-Media.repo
-rw-r–r–. 1 root root 1331 Nov 23 2020 CentOS-Sources.repo
-rw-r–r–. 1 root root 8515 Nov 23 2020 CentOS-Vault.repo
-rw-r–r–. 1 root root 616 Nov 23 2020 CentOS-x86_64-kernel.repo
-rw-r–r–. 1 root root 1358 Sep 4 2021 epel.repo
-rw-r–r–. 1 root root 1457 Sep 4 2021 epel-testing.repo
-rw-r–r–. 1 root root 855 Sep 2 09:05 remi-modular.repo
-rw-r–r–. 1 root root 456 Sep 2 09:05 remi-php54.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php70.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php71.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php72.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php73.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php74.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php80.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php81.repo
-rw-r–r–. 1 root root 1314 Sep 2 09:05 remi-php82.repo
-rw-r–r–. 1 root root 2605 Sep 2 09:05 remi.repo
-rw-r–r–. 1 root root 750 Sep 2 09:05 remi-safe.repo
[root@localhost html]#
PHP80をインストールします
下記のコードを実行します 要注意 コピペした場合に、– ?に文字化けしている場合があるので注意してください
yum install --enablerepo=remi,remi-php80 php php-fpm php-devel php-cli php-common php-mbstring php-xml php-pecl-mcrypt php-pecl-apcu php-mysqlnd php-pdo php-gd php-pear php-pecl-mysql php-tcpdf php-mcrypt php-process php-pdo php-bcmath php-xml php-gd php-intl php-recode php-pecl-msgpack php-pecl-memcached
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi: ftp.riken.jp
* remi-php80: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: ftp.iij.ad.jp
Package php-mcrypt is obsoleted by php-pecl-mcrypt, trying to install php-pecl-mcrypt-1.0.5-1.el7.remi.8.0.x86_64 instead
Package php-recode is obsoleted by php-pecl-recode, trying to install php-pecl-recode-1.0.0~DEV.20190723-6.el7.remi.8.0.x86_64 instead
Resolving Dependencies
–> Running transaction check
—> Package php.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: php-sodium(x86-64) = 8.0.25-1.el7.remi for package: php-8.0.25-1.el7.remi.x86_64
—> Package php-bcmath.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-cli.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-common.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-devel.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: openssl-devel(x86-64) >= 1.0.1 for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: autoconf for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: automake for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: gcc for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: gcc-c++ for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: krb5-devel(x86-64) for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libtool for package: php-devel-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxml2-devel(x86-64) for package: php-devel-8.0.25-1.el7.remi.x86_64
—> Package php-fpm.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-gd.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libgd.so.103()(64bit) for package: php-gd-8.0.25-1.el7.remi.x86_64
—> Package php-intl.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libicudata.so.71()(64bit) for package: php-intl-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libicui18n.so.71()(64bit) for package: php-intl-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libicuio.so.71()(64bit) for package: php-intl-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libicuuc.so.71()(64bit) for package: php-intl-8.0.25-1.el7.remi.x86_64
—> Package php-mbstring.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libonig.so.105()(64bit) for package: php-mbstring-8.0.25-1.el7.remi.x86_64
—> Package php-mysqlnd.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-pdo.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-pear.noarch 1:1.10.13-1.el7.remi will be installed
—> Package php-pecl-apcu.x86_64 0:5.1.22-1.el7.remi.8.0 will be installed
—> Package php-pecl-mcrypt.x86_64 0:1.0.5-1.el7.remi.8.0 will be installed
–> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-pecl-mcrypt-1.0.5-1.el7.remi.8.0.x86_64
—> Package php-pecl-memcached.x86_64 0:3.2.0-1.el7.remi.8.0 will be installed
–> Processing Dependency: fastlz(x86-64) for package: php-pecl-memcached-3.2.0-1.el7.remi.8.0.x86_64
–> Processing Dependency: remi-libmemcached-awesome(x86-64) for package: php-pecl-memcached-3.2.0-1.el7.remi.8.0.x86_64
–> Processing Dependency: php-igbinary(x86-64) for package: php-pecl-memcached-3.2.0-1.el7.remi.8.0.x86_64
—> Package php-pecl-msgpack.x86_64 0:2.1.2-1.el7.remi.8.0 will be installed
—> Package php-pecl-mysql.x86_64 0:1.0.0-0.24.20201210.6ca4fa4.el7.remi.8.0 will be installed
—> Package php-pecl-recode.x86_64 0:1.0.0~DEV.20190723-6.el7.remi.8.0 will be installed
–> Processing Dependency: librecode.so.0()(64bit) for package: php-pecl-recode-1.0.0~DEV.20190723-6.el7.remi.8.0.x86_64
—> Package php-process.x86_64 0:8.0.25-1.el7.remi will be installed
—> Package php-tcpdf.noarch 0:6.5.0-1.el7.remi will be installed
–> Processing Dependency: php-composer(fedora/autoloader) for package: php-tcpdf-6.5.0-1.el7.remi.noarch
–> Processing Dependency: php-tidy for package: php-tcpdf-6.5.0-1.el7.remi.noarch
—> Package php-xml.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-8.0.25-1.el7.remi.x86_64
–> Running transaction check
—> Package autoconf.noarch 0:2.69-11.el7 will be installed
–> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
–> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
—> Package automake.noarch 0:1.13.4-3.el7 will be installed
–> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
–> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
—> Package fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el7.remi will be installed
—> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
–> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
–> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-44.el7.x86_64
—> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed
–> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
—> Package gd3php.x86_64 0:2.3.3-7.el7.remi will be installed
–> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libX11.so.6()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libXpm.so.4()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libjpeg.so.62()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libraqm.so.0()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libtiff.so.5()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
–> Processing Dependency: libwebp.so.7()(64bit) for package: gd3php-2.3.3-7.el7.remi.x86_64
—> Package krb5-devel.x86_64 0:1.15.1-54.el7_9 will be installed
–> Processing Dependency: libkadm5(x86-64) = 1.15.1-54.el7_9 for package: krb5-devel-1.15.1-54.el7_9.x86_64
–> Processing Dependency: krb5-libs(x86-64) = 1.15.1-54.el7_9 for package: krb5-devel-1.15.1-54.el7_9.x86_64
–> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-54.el7_9.x86_64
–> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-54.el7_9.x86_64
–> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-54.el7_9.x86_64
–> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-54.el7_9.x86_64
—> Package libicu71.x86_64 0:71.1-2.el7.remi will be installed
—> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
—> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
—> Package libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 will be installed
–> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64
—> Package libxslt.x86_64 0:1.1.28-6.el7 will be installed
—> Package oniguruma5php.x86_64 0:6.9.8-1.el7.remi will be installed
—> Package openssl-devel.x86_64 1:1.0.2k-25.el7_9 will be installed
–> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-25.el7_9 for package: 1:openssl-devel-1.0.2k-25.el7_9.x86_64
—> Package php-fedora-autoloader.noarch 0:1.0.1-2.el7.remi will be installed
—> Package php-pecl-igbinary.x86_64 0:3.2.12-1.el7.remi.8.0 will be installed
—> Package php-sodium.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libsodium.so.23()(64bit) for package: php-sodium-8.0.25-1.el7.remi.x86_64
—> Package php-tidy.x86_64 0:8.0.25-1.el7.remi will be installed
–> Processing Dependency: libtidy.so.5()(64bit) for package: php-tidy-8.0.25-1.el7.remi.x86_64
—> Package recode.x86_64 0:3.6-38.el7 will be installed
—> Package remi-libmemcached-awesome.x86_64 0:1.1.3-1.el7.remi will be installed
–> Running transaction check
—> Package cpp.x86_64 0:4.8.5-44.el7 will be installed
—> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
–> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
–> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
—> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be installed
–> Processing Dependency: glibc-headers = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64
–> Processing Dependency: glibc = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64
–> Processing Dependency: glibc-headers for package: glibc-devel-2.17-326.el7_9.x86_64
—> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
—> Package krb5-libs.x86_64 0:1.15.1-51.el7_9 will be updated
—> Package krb5-libs.x86_64 0:1.15.1-54.el7_9 will be an update
—> Package libX11.x86_64 0:1.6.7-4.el7_9 will be installed
–> Processing Dependency: libX11-common >= 1.6.7-4.el7_9 for package: libX11-1.6.7-4.el7_9.x86_64
–> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-4.el7_9.x86_64
—> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
—> Package libcom_err-devel.x86_64 0:1.42.9-19.el7 will be installed
—> Package libjpeg-turbo.x86_64 0:1.2.90-8.el7 will be installed
—> Package libkadm5.x86_64 0:1.15.1-54.el7_9 will be installed
—> Package libraqm.x86_64 0:0.7.0-4.el7 will be installed
–> Processing Dependency: libfribidi.so.0()(64bit) for package: libraqm-0.7.0-4.el7.x86_64
–> Processing Dependency: libharfbuzz.so.0()(64bit) for package: libraqm-0.7.0-4.el7.x86_64
—> Package libselinux-devel.x86_64 0:2.5-15.el7 will be installed
–> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-15.el7.x86_64
–> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-15.el7.x86_64
–> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-15.el7.x86_64
—> Package libsodium.x86_64 0:1.0.18-1.el7.remi will be installed
—> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed
—> Package libtidy.x86_64 0:5.4.0-1.el7 will be installed
—> Package libtiff.x86_64 0:4.0.3-35.el7 will be installed
–> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-35.el7.x86_64
—> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
—> Package libwebp7.x86_64 0:1.0.3-1.el7.remi will be installed
—> Package m4.x86_64 0:1.4.16-10.el7 will be installed
—> Package openssl-libs.x86_64 1:1.0.2k-24.el7_9 will be updated
–> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-24.el7_9 for package: 1:openssl-1.0.2k-24.el7_9.x86_64
—> Package openssl-libs.x86_64 1:1.0.2k-25.el7_9 will be an update
—> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
—> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
—> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
—> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed
–> Processing Dependency: xz-libs = 5.2.2-2.el7_9 for package: xz-devel-5.2.2-2.el7_9.x86_64
–> Running transaction check
—> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
–> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
—> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
—> Package fribidi.x86_64 0:1.0.2-1.el7_7.1 will be installed
—> Package glibc.x86_64 0:2.17-325.el7_9 will be updated
–> Processing Dependency: glibc = 2.17-325.el7_9 for package: glibc-common-2.17-325.el7_9.x86_64
—> Package glibc.x86_64 0:2.17-326.el7_9 will be an update
—> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be installed
–> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-326.el7_9.x86_64
–> Processing Dependency: kernel-headers for package: glibc-headers-2.17-326.el7_9.x86_64
—> Package harfbuzz.x86_64 0:1.7.5-2.el7 will be installed
–> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.7.5-2.el7.x86_64
—> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
—> Package libX11-common.noarch 0:1.6.7-4.el7_9 will be installed
—> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
—> Package libxcb.x86_64 0:1.13-1.el7 will be installed
–> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
—> Package openssl.x86_64 1:1.0.2k-24.el7_9 will be updated
—> Package openssl.x86_64 1:1.0.2k-25.el7_9 will be an update
—> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
—> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated
–> Processing Dependency: xz-libs = 5.2.2-1.el7 for package: xz-5.2.2-1.el7.x86_64
—> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update
–> Running transaction check
—> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
—> Package glibc-common.x86_64 0:2.17-325.el7_9 will be updated
—> Package glibc-common.x86_64 0:2.17-326.el7_9 will be an update
—> Package graphite2.x86_64 0:1.3.10-1.el7_3 will be installed
—> Package kernel-headers.x86_64 0:3.10.0-1160.80.1.el7 will be installed
—> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
—> Package xz.x86_64 0:5.2.2-1.el7 will be updated
—> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update
–> Finished Dependency ResolutionDependencies Resolved=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Installing:
php x86_64 8.0.25-1.el7.remi remi-php80 1.8 M
php-bcmath x86_64 8.0.25-1.el7.remi remi-php80 84 k
php-cli x86_64 8.0.25-1.el7.remi remi-php80 5.3 M
php-common x86_64 8.0.25-1.el7.remi remi-php80 1.2 M
php-devel x86_64 8.0.25-1.el7.remi remi-php80 1.3 M
php-fpm x86_64 8.0.25-1.el7.remi remi-php80 1.8 M
php-gd x86_64 8.0.25-1.el7.remi remi-php80 99 k
php-intl x86_64 8.0.25-1.el7.remi remi-php80 238 k
php-mbstring x86_64 8.0.25-1.el7.remi remi-php80 522 k
php-mysqlnd x86_64 8.0.25-1.el7.remi remi-php80 258 k
php-pdo x86_64 8.0.25-1.el7.remi remi-php80 151 k
php-pear noarch 1:1.10.13-1.el7.remi remi 363 k
php-pecl-apcu x86_64 5.1.22-1.el7.remi.8.0 remi-php80 74 k
php-pecl-mcrypt x86_64 1.0.5-1.el7.remi.8.0 remi-php80 30 k
php-pecl-memcached x86_64 3.2.0-1.el7.remi.8.0 remi-php80 94 k
php-pecl-msgpack x86_64 2.1.2-1.el7.remi.8.0 remi-php80 61 k
php-pecl-mysql x86_64 1.0.0-0.24.20201210.6ca4fa4.el7.remi.8.0 remi-php80 39 k
php-pecl-recode x86_64 1.0.0~DEV.20190723-6.el7.remi.8.0 remi-php80 13 k
php-process x86_64 8.0.25-1.el7.remi remi-php80 102 k
php-tcpdf noarch 6.5.0-1.el7.remi remi 2.1 M
php-xml x86_64 8.0.25-1.el7.remi remi-php80 232 k
Installing for dependencies:
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-44.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
fastlz x86_64 0.1.0-0.1.20070619svnrev12.el7.remi remi 8.8 k
fontconfig x86_64 2.13.0-4.3.el7 base 254 k
fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
fribidi x86_64 1.0.2-1.el7_7.1 base 79 k
gcc x86_64 4.8.5-44.el7 base 16 M
gcc-c++ x86_64 4.8.5-44.el7 base 7.2 M
gd3php x86_64 2.3.3-7.el7.remi remi 138 k
glibc-devel x86_64 2.17-326.el7_9 updates 1.1 M
glibc-headers x86_64 2.17-326.el7_9 updates 691 k
graphite2 x86_64 1.3.10-1.el7_3 base 115 k
harfbuzz x86_64 1.7.5-2.el7 base 267 k
jbigkit-libs x86_64 2.0-11.el7 base 46 k
kernel-headers x86_64 3.10.0-1160.80.1.el7 updates 9.1 M
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-54.el7_9 updates 273 k
libX11 x86_64 1.6.7-4.el7_9 updates 607 k
libX11-common noarch 1.6.7-4.el7_9 updates 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
libcom_err-devel x86_64 1.42.9-19.el7 base 32 k
libicu71 x86_64 71.1-2.el7.remi remi 10 M
libjpeg-turbo x86_64 1.2.90-8.el7 base 135 k
libkadm5 x86_64 1.15.1-54.el7_9 updates 179 k
libmcrypt x86_64 2.5.8-13.el7 epel 99 k
libraqm x86_64 0.7.0-4.el7 epel 15 k
libselinux-devel x86_64 2.5-15.el7 base 187 k
libsepol-devel x86_64 2.5-10.el7 base 77 k
libsodium x86_64 1.0.18-1.el7.remi remi 148 k
libstdc++-devel x86_64 4.8.5-44.el7 base 1.5 M
libtidy x86_64 5.4.0-1.el7 epel 174 k
libtiff x86_64 4.0.3-35.el7 base 172 k
libtool x86_64 2.4.2-22.el7_3 base 588 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
libwebp7 x86_64 1.0.3-1.el7.remi remi 266 k
libxcb x86_64 1.13-1.el7 base 214 k
libxml2-devel x86_64 2.9.1-6.el7_9.6 updates 1.1 M
libxslt x86_64 1.1.28-6.el7 base 242 k
m4 x86_64 1.4.16-10.el7 base 256 k
oniguruma5php x86_64 6.9.8-1.el7.remi remi 207 k
openssl-devel x86_64 1:1.0.2k-25.el7_9 updates 1.5 M
pcre-devel x86_64 8.32-17.el7 base 480 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-Test-Harness noarch 3.28-3.el7 base 302 k
perl-Thread-Queue noarch 3.02-2.el7 base 17 k
php-fedora-autoloader noarch 1.0.1-2.el7.remi remi 9.1 k
php-pecl-igbinary x86_64 3.2.12-1.el7.remi.8.0 remi-php80 68 k
php-sodium x86_64 8.0.25-1.el7.remi remi-php80 92 k
php-tidy x86_64 8.0.25-1.el7.remi remi-php80 79 k
recode x86_64 3.6-38.el7 base 718 k
remi-libmemcached-awesome x86_64 1.1.3-1.el7.remi remi 113 k
xz-devel x86_64 5.2.2-2.el7_9 updates 46 k
Updating for dependencies:
glibc x86_64 2.17-326.el7_9 updates 3.6 M
glibc-common x86_64 2.17-326.el7_9 updates 12 M
krb5-libs x86_64 1.15.1-54.el7_9 updates 810 k
openssl x86_64 1:1.0.2k-25.el7_9 updates 494 k
openssl-libs x86_64 1:1.0.2k-25.el7_9 updates 1.2 M
xz x86_64 5.2.2-2.el7_9 updates 229 k
xz-libs x86_64 5.2.2-2.el7_9 updates 103 kTransaction Summary
=======================================================================================================================
Install 21 Packages (+56 Dependent packages)
Upgrade ( 7 Dependent packages)Total size: 98 M
Is this ok [y/d/N]: y
インストールするためにyを入力してエンターで実行しますDownloading packages:
warning: /var/cache/yum/x86_64/7/remi-php80/packages/php-pecl-recode-1.0.0~DEV.20190723-6.el7.remi.8.0.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Importing GPG key 0x00F97F56:
Userid : “Remi Collet <RPMS@FamilleCollet.com>”
Fingerprint: 1ee0 4cce 88a4 ae4a a29a 5df5 004e 6f47 00f9 7f56
Package : remi-release-7.9-4.el7.remi.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Is this ok [y/N]: y
ここでも鍵をインストールするためにyを入力してエンターで実行しますRunning transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating : glibc-common-2.17-326.el7_9.x86_64 1/91
Updating : glibc-2.17-326.el7_9.x86_64 2/91
Updating : krb5-libs-1.15.1-54.el7_9.x86_64 3/91
Updating : 1:openssl-libs-1.0.2k-25.el7_9.x86_64 4/91
Installing : php-common-8.0.25-1.el7.remi.x86_64 5/91
Installing : php-cli-8.0.25-1.el7.remi.x86_64 6/91
Installing : php-process-8.0.25-1.el7.remi.x86_64 7/91
Updating : xz-libs-5.2.2-2.el7_9.x86_64 8/91
Installing : libjpeg-turbo-1.2.90-8.el7.x86_64 9/91
Installing : fontpackages-filesystem-1.44-8.el7.noarch 10/91
Installing : dejavu-fonts-common-2.33-6.el7.noarch 11/91
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 12/91
Installing : fontconfig-2.13.0-4.3.el7.x86_64 13/91
Installing : xz-devel-5.2.2-2.el7_9.x86_64 14/91
Installing : libxml2-devel-2.9.1-6.el7_9.6.x86_64 15/91
Installing : php-pecl-msgpack-2.1.2-1.el7.remi.8.0.x86_64 16/91
Installing : php-bcmath-8.0.25-1.el7.remi.x86_64 17/91
Installing : php-fedora-autoloader-1.0.1-2.el7.remi.noarch 18/91
Installing : php-pecl-igbinary-3.2.12-1.el7.remi.8.0.x86_64 19/91
Installing : php-pdo-8.0.25-1.el7.remi.x86_64 20/91
Installing : php-mysqlnd-8.0.25-1.el7.remi.x86_64 21/91
Installing : remi-libmemcached-awesome-1.1.3-1.el7.remi.x86_64 22/91
Installing : libkadm5-1.15.1-54.el7_9.x86_64 23/91
Installing : fastlz-0.1.0-0.1.20070619svnrev12.el7.remi.x86_64 24/91
Installing : cpp-4.8.5-44.el7.x86_64 25/91
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 26/91
Installing : libtidy-5.4.0-1.el7.x86_64 27/91
Installing : php-tidy-8.0.25-1.el7.remi.x86_64 28/91
Installing : libXau-1.0.8-2.1.el7.x86_64 29/91
Installing : libxcb-1.13-1.el7.x86_64 30/91
Installing : oniguruma5php-6.9.8-1.el7.remi.x86_64 31/91
Installing : php-mbstring-8.0.25-1.el7.remi.x86_64 32/91
Installing : libwebp7-1.0.3-1.el7.remi.x86_64 33/91
Installing : graphite2-1.3.10-1.el7_3.x86_64 34/91
Installing : harfbuzz-1.7.5-2.el7.x86_64 35/91
Installing : recode-3.6-38.el7.x86_64 36/91
Installing : m4-1.4.16-10.el7.x86_64 37/91
Installing : autoconf-2.69-11.el7.noarch 38/91
Installing : fribidi-1.0.2-1.el7_7.1.x86_64 39/91
Installing : libraqm-0.7.0-4.el7.x86_64 40/91
Installing : libsodium-1.0.18-1.el7.remi.x86_64 41/91
Installing : php-sodium-8.0.25-1.el7.remi.x86_64 42/91
Installing : libmcrypt-2.5.8-13.el7.x86_64 43/91
Installing : jbigkit-libs-2.0-11.el7.x86_64 44/91
Installing : libtiff-4.0.3-35.el7.x86_64 45/91
Installing : libxslt-1.1.28-6.el7.x86_64 46/91
Installing : php-xml-8.0.25-1.el7.remi.x86_64 47/91
Installing : libicu71-71.1-2.el7.remi.x86_64 48/91
Installing : libX11-common-1.6.7-4.el7_9.noarch 49/91
Installing : libX11-1.6.7-4.el7_9.x86_64 50/91
Installing : libXpm-3.5.12-1.el7.x86_64 51/91
Installing : gd3php-2.3.3-7.el7.remi.x86_64 52/91
Installing : php-gd-8.0.25-1.el7.remi.x86_64 53/91
Installing : libstdc++-devel-4.8.5-44.el7.x86_64 54/91
Installing : kernel-headers-3.10.0-1160.80.1.el7.x86_64 55/91
Installing : glibc-headers-2.17-326.el7_9.x86_64 56/91
Installing : glibc-devel-2.17-326.el7_9.x86_64 57/91
Installing : gcc-4.8.5-44.el7.x86_64 58/91
Installing : gcc-c++-4.8.5-44.el7.x86_64 59/91
Installing : perl-Thread-Queue-3.02-2.el7.noarch 60/91
Installing : libcom_err-devel-1.42.9-19.el7.x86_64 61/91
Installing : perl-Test-Harness-3.28-3.el7.noarch 62/91
Installing : automake-1.13.4-3.el7.noarch 63/91
Installing : libtool-2.4.2-22.el7_3.x86_64 64/91
Installing : pcre-devel-8.32-17.el7.x86_64 65/91
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 66/91
Installing : libsepol-devel-2.5-10.el7.x86_64 67/91
Installing : libselinux-devel-2.5-15.el7.x86_64 68/91
Installing : libverto-devel-0.2.5-4.el7.x86_64 69/91
Installing : krb5-devel-1.15.1-54.el7_9.x86_64 70/91
Installing : 1:openssl-devel-1.0.2k-25.el7_9.x86_64 71/91
Installing : php-devel-8.0.25-1.el7.remi.x86_64 72/91
Installing : php-tcpdf-6.5.0-1.el7.remi.noarch 73/91
Installing : php-intl-8.0.25-1.el7.remi.x86_64 74/91
Installing : 1:php-pear-1.10.13-1.el7.remi.noarch 75/91
Installing : php-pecl-mcrypt-1.0.5-1.el7.remi.8.0.x86_64 76/91
Installing : php-8.0.25-1.el7.remi.x86_64 77/91
Installing : php-pecl-recode-1.0.0~DEV.20190723-6.el7.remi.8.0.x86_64 78/91
Installing : php-pecl-memcached-3.2.0-1.el7.remi.8.0.x86_64 79/91
Installing : php-pecl-mysql-1.0.0-0.24.20201210.6ca4fa4.el7.remi.8.0.x86_64 80/91
Updating : xz-5.2.2-2.el7_9.x86_64 81/91
Installing : php-fpm-8.0.25-1.el7.remi.x86_64 82/91
Installing : php-pecl-apcu-5.1.22-1.el7.remi.8.0.x86_64 83/91
Updating : 1:openssl-1.0.2k-25.el7_9.x86_64 84/91
Cleanup : 1:openssl-1.0.2k-24.el7_9.x86_64 85/91
Cleanup : xz-5.2.2-1.el7.x86_64 86/91
Cleanup : krb5-libs-1.15.1-51.el7_9.x86_64 87/91
Cleanup : 1:openssl-libs-1.0.2k-24.el7_9.x86_64 88/91
Cleanup : xz-libs-5.2.2-1.el7.x86_64 89/91
Cleanup : glibc-common-2.17-325.el7_9.x86_64 90/91
Cleanup : glibc-2.17-325.el7_9.x86_64 91/91
Verifying : gcc-c++-4.8.5-44.el7.x86_64 1/91
Verifying : php-pecl-recode-1.0.0~DEV.20190723-6.el7.remi.8.0.x86_64 2/91
Verifying : php-xml-8.0.25-1.el7.remi.x86_64 3/91
Verifying : php-mysqlnd-8.0.25-1.el7.remi.x86_64 4/91
Verifying : libverto-devel-0.2.5-4.el7.x86_64 5/91
Verifying : php-pecl-mysql-1.0.0-0.24.20201210.6ca4fa4.el7.remi.8.0.x86_64 6/91
Verifying : fastlz-0.1.0-0.1.20070619svnrev12.el7.remi.x86_64 7/91
Verifying : cpp-4.8.5-44.el7.x86_64 8/91
Verifying : php-pecl-msgpack-2.1.2-1.el7.remi.8.0.x86_64 9/91
Verifying : libXpm-3.5.12-1.el7.x86_64 10/91
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 11/91
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 12/91
Verifying : 1:openssl-1.0.2k-25.el7_9.x86_64 13/91
Verifying : xz-devel-5.2.2-2.el7_9.x86_64 14/91
Verifying : libsepol-devel-2.5-10.el7.x86_64 15/91
Verifying : libtidy-5.4.0-1.el7.x86_64 16/91
Verifying : autoconf-2.69-11.el7.noarch 17/91
Verifying : php-cli-8.0.25-1.el7.remi.x86_64 18/91
Verifying : libXau-1.0.8-2.1.el7.x86_64 19/91
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 20/91
Verifying : libxml2-devel-2.9.1-6.el7_9.6.x86_64 21/91
Verifying : glibc-2.17-326.el7_9.x86_64 22/91
Verifying : php-fpm-8.0.25-1.el7.remi.x86_64 23/91
Verifying : automake-1.13.4-3.el7.noarch 24/91
Verifying : php-process-8.0.25-1.el7.remi.x86_64 25/91
Verifying : libkadm5-1.15.1-54.el7_9.x86_64 26/91
Verifying : oniguruma5php-6.9.8-1.el7.remi.x86_64 27/91
Verifying : php-mbstring-8.0.25-1.el7.remi.x86_64 28/91
Verifying : 1:php-pear-1.10.13-1.el7.remi.noarch 29/91
Verifying : gd3php-2.3.3-7.el7.remi.x86_64 30/91
Verifying : libwebp7-1.0.3-1.el7.remi.x86_64 31/91
Verifying : krb5-devel-1.15.1-54.el7_9.x86_64 32/91
Verifying : php-bcmath-8.0.25-1.el7.remi.x86_64 33/91
Verifying : php-sodium-8.0.25-1.el7.remi.x86_64 34/91
Verifying : php-pecl-memcached-3.2.0-1.el7.remi.8.0.x86_64 35/91
Verifying : graphite2-1.3.10-1.el7_3.x86_64 36/91
Verifying : glibc-devel-2.17-326.el7_9.x86_64 37/91
Verifying : php-common-8.0.25-1.el7.remi.x86_64 38/91
Verifying : libselinux-devel-2.5-15.el7.x86_64 39/91
Verifying : fontconfig-2.13.0-4.3.el7.x86_64 40/91
Verifying : php-fedora-autoloader-1.0.1-2.el7.remi.noarch 41/91
Verifying : php-tcpdf-6.5.0-1.el7.remi.noarch 42/91
Verifying : pcre-devel-8.32-17.el7.x86_64 43/91
Verifying : recode-3.6-38.el7.x86_64 44/91
Verifying : php-pecl-mcrypt-1.0.5-1.el7.remi.8.0.x86_64 45/91
Verifying : m4-1.4.16-10.el7.x86_64 46/91
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 47/91
Verifying : perl-Test-Harness-3.28-3.el7.noarch 48/91
Verifying : fribidi-1.0.2-1.el7_7.1.x86_64 49/91
Verifying : xz-libs-5.2.2-2.el7_9.x86_64 50/91
Verifying : libtool-2.4.2-22.el7_3.x86_64 51/91
Verifying : php-pecl-apcu-5.1.22-1.el7.remi.8.0.x86_64 52/91
Verifying : php-8.0.25-1.el7.remi.x86_64 53/91
Verifying : remi-libmemcached-awesome-1.1.3-1.el7.remi.x86_64 54/91
Verifying : harfbuzz-1.7.5-2.el7.x86_64 55/91
Verifying : 1:openssl-devel-1.0.2k-25.el7_9.x86_64 56/91
Verifying : libraqm-0.7.0-4.el7.x86_64 57/91
Verifying : libX11-1.6.7-4.el7_9.x86_64 58/91
Verifying : libcom_err-devel-1.42.9-19.el7.x86_64 59/91
Verifying : krb5-libs-1.15.1-54.el7_9.x86_64 60/91
Verifying : libsodium-1.0.18-1.el7.remi.x86_64 61/91
Verifying : libjpeg-turbo-1.2.90-8.el7.x86_64 62/91
Verifying : php-gd-8.0.25-1.el7.remi.x86_64 63/91
Verifying : php-tidy-8.0.25-1.el7.remi.x86_64 64/91
Verifying : libmcrypt-2.5.8-13.el7.x86_64 65/91
Verifying : php-pecl-igbinary-3.2.12-1.el7.remi.8.0.x86_64 66/91
Verifying : libtiff-4.0.3-35.el7.x86_64 67/91
Verifying : perl-Thread-Queue-3.02-2.el7.noarch 68/91
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 69/91
Verifying : glibc-headers-2.17-326.el7_9.x86_64 70/91
Verifying : kernel-headers-3.10.0-1160.80.1.el7.x86_64 71/91
Verifying : libxcb-1.13-1.el7.x86_64 72/91
Verifying : php-pdo-8.0.25-1.el7.remi.x86_64 73/91
Verifying : 1:openssl-libs-1.0.2k-25.el7_9.x86_64 74/91
Verifying : php-intl-8.0.25-1.el7.remi.x86_64 75/91
Verifying : jbigkit-libs-2.0-11.el7.x86_64 76/91
Verifying : glibc-common-2.17-326.el7_9.x86_64 77/91
Verifying : gcc-4.8.5-44.el7.x86_64 78/91
Verifying : libxslt-1.1.28-6.el7.x86_64 79/91
Verifying : php-devel-8.0.25-1.el7.remi.x86_64 80/91
Verifying : libicu71-71.1-2.el7.remi.x86_64 81/91
Verifying : libstdc++-devel-4.8.5-44.el7.x86_64 82/91
Verifying : xz-5.2.2-2.el7_9.x86_64 83/91
Verifying : libX11-common-1.6.7-4.el7_9.noarch 84/91
Verifying : krb5-libs-1.15.1-51.el7_9.x86_64 85/91
Verifying : glibc-common-2.17-325.el7_9.x86_64 86/91
Verifying : 1:openssl-1.0.2k-24.el7_9.x86_64 87/91
Verifying : 1:openssl-libs-1.0.2k-24.el7_9.x86_64 88/91
Verifying : xz-libs-5.2.2-1.el7.x86_64 89/91
Verifying : glibc-2.17-325.el7_9.x86_64 90/91
Verifying : xz-5.2.2-1.el7.x86_64 91/91Installed:
php.x86_64 0:8.0.25-1.el7.remi
php-bcmath.x86_64 0:8.0.25-1.el7.remi
php-cli.x86_64 0:8.0.25-1.el7.remi
php-common.x86_64 0:8.0.25-1.el7.remi
php-devel.x86_64 0:8.0.25-1.el7.remi
php-fpm.x86_64 0:8.0.25-1.el7.remi
php-gd.x86_64 0:8.0.25-1.el7.remi
php-intl.x86_64 0:8.0.25-1.el7.remi
php-mbstring.x86_64 0:8.0.25-1.el7.remi
php-mysqlnd.x86_64 0:8.0.25-1.el7.remi
php-pdo.x86_64 0:8.0.25-1.el7.remi
php-pear.noarch 1:1.10.13-1.el7.remi
php-pecl-apcu.x86_64 0:5.1.22-1.el7.remi.8.0
php-pecl-mcrypt.x86_64 0:1.0.5-1.el7.remi.8.0
php-pecl-memcached.x86_64 0:3.2.0-1.el7.remi.8.0
php-pecl-msgpack.x86_64 0:2.1.2-1.el7.remi.8.0
php-pecl-mysql.x86_64 0:1.0.0-0.24.20201210.6ca4fa4.el7.remi.8.0
php-pecl-recode.x86_64 0:1.0.0~DEV.20190723-6.el7.remi.8.0
php-process.x86_64 0:8.0.25-1.el7.remi
php-tcpdf.noarch 0:6.5.0-1.el7.remi
php-xml.x86_64 0:8.0.25-1.el7.remiDependency Installed:
autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7
cpp.x86_64 0:4.8.5-44.el7 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el7.remi
fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7
fribidi.x86_64 0:1.0.2-1.el7_7.1 gcc.x86_64 0:4.8.5-44.el7
gcc-c++.x86_64 0:4.8.5-44.el7 gd3php.x86_64 0:2.3.3-7.el7.remi
glibc-devel.x86_64 0:2.17-326.el7_9 glibc-headers.x86_64 0:2.17-326.el7_9
graphite2.x86_64 0:1.3.10-1.el7_3 harfbuzz.x86_64 0:1.7.5-2.el7
jbigkit-libs.x86_64 0:2.0-11.el7 kernel-headers.x86_64 0:3.10.0-1160.80.1.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-54.el7_9
libX11.x86_64 0:1.6.7-4.el7_9 libX11-common.noarch 0:1.6.7-4.el7_9
libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.12-1.el7
libcom_err-devel.x86_64 0:1.42.9-19.el7 libicu71.x86_64 0:71.1-2.el7.remi
libjpeg-turbo.x86_64 0:1.2.90-8.el7 libkadm5.x86_64 0:1.15.1-54.el7_9
libmcrypt.x86_64 0:2.5.8-13.el7 libraqm.x86_64 0:0.7.0-4.el7
libselinux-devel.x86_64 0:2.5-15.el7 libsepol-devel.x86_64 0:2.5-10.el7
libsodium.x86_64 0:1.0.18-1.el7.remi libstdc++-devel.x86_64 0:4.8.5-44.el7
libtidy.x86_64 0:5.4.0-1.el7 libtiff.x86_64 0:4.0.3-35.el7
libtool.x86_64 0:2.4.2-22.el7_3 libverto-devel.x86_64 0:0.2.5-4.el7
libwebp7.x86_64 0:1.0.3-1.el7.remi libxcb.x86_64 0:1.13-1.el7
libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 libxslt.x86_64 0:1.1.28-6.el7
m4.x86_64 0:1.4.16-10.el7 oniguruma5php.x86_64 0:6.9.8-1.el7.remi
openssl-devel.x86_64 1:1.0.2k-25.el7_9 pcre-devel.x86_64 0:8.32-17.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Test-Harness.noarch 0:3.28-3.el7
perl-Thread-Queue.noarch 0:3.02-2.el7 php-fedora-autoloader.noarch 0:1.0.1-2.el7.remi
php-pecl-igbinary.x86_64 0:3.2.12-1.el7.remi.8.0 php-sodium.x86_64 0:8.0.25-1.el7.remi
php-tidy.x86_64 0:8.0.25-1.el7.remi recode.x86_64 0:3.6-38.el7
remi-libmemcached-awesome.x86_64 0:1.1.3-1.el7.remi xz-devel.x86_64 0:5.2.2-2.el7_9Dependency Updated:
glibc.x86_64 0:2.17-326.el7_9 glibc-common.x86_64 0:2.17-326.el7_9 krb5-libs.x86_64 0:1.15.1-54.el7_9
openssl.x86_64 1:1.0.2k-25.el7_9 openssl-libs.x86_64 1:1.0.2k-25.el7_9 xz.x86_64 0:5.2.2-2.el7_9
xz-libs.x86_64 0:5.2.2-2.el7_9
Complete!
インストール完了しました
phpがインストールしているかを確認するために下記のコマンドを実行します。
php -v バージョン確認コマンド
PHP 8.0.25 (cli) (built: Oct 25 2022 09:42:31) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.25, Copyright (c) Zend Technologies
無事にphp80がインストールされました.
このままではapacheからphp80を実行できないので、php-fpmの設定を行います。
php-fpmとはFastCGIの実装の一つです。
ひと昔まではapacheのモジュールmod_phpで apacheからphpを実行していましたが
php80からはmod_phpが手動でインストールしないといけないので
php-fpmで稼働させます。 コマンドは下記を実行します
grep “fpm” /etc/php.ini
下記のコマンドでphpの設定ファイルよりphp-fpmの設定ファイルがどこにあるか調べてみます。
grep fpm /etc/php.ini
; for php-fpm, see /etc/php-fpm.d/*conf
; for php-fpm, see /etc/php-fpm.d/*conf
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
ここに設定ファイルが配置されている配置場所のファイル一覧を確認する
[root@localhost ~]# ls -la /etc/php-fpm.d/*conf
-rw-r–r–. 1 root root 19485 Oct 25 11:24 /etc/php-fpm.d/www.conf
[root@localhost ~]#
ファイルの中身に必要な設定情報の1つを確認してみる下記のコマンドを実行
grep listen /etc/php-fpm.d/www.conf
結果は下記の通りですが、最後の行のlistenを確認します
[root@localhost ~]# grep listen /etc/php-fpm.d/www.conf
; – ‘listen’ (unixsocket)
; ‘ip.add.re.ss:port’ – to listen on a TCP socket to a specific IPv4 address on
; ‘[ip:6:addr:ess]:port’ – to listen on a TCP socket to a specific IPv6 address on
; ‘port’ – to listen on a TCP socket to all addresses
; ‘/path/to/unix/socket’ – to listen on a unix socket.
listen = 127.0.0.1:9000
127.0.0.1:9000 これはipアドレスとポートを意味します
ここでは深く追求はしませんが、9000番を使うと思って下さい。
次にapacheの設定ファイルにphp-fpm port 9000番を使う設定を行います。
下記のコマンドを実行してhttpd.confファイルを編集します。
書き込みを行いたい場合は a を押して書き込むようにしてください
vi の使い方がわからない人はlinux vi 書き込みで検索してください。
「:w」がファイル書き込
「:q」がviの終了
vi /etc/httpd/conf/httpd.conf
151行目 AllowOverride None 下記に修正
AllowOverride All その下に下記を追加
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
書き込みが完了したらESCとwqでvi を終了させます 下記は書き込みと終了を意味します
:wq
apacheの設定が完了したら次にapacheの再起動とphp-fpmの起動を行います。
linuxでは設定を変更した場合は、設定を読み込むために、デーモンを再起動するか、設定を再度読み込まさないと
反映しないので注意してください。
再起動と起動は下記のコマンドを実行してください
systemctl restart httpd
systemctl start php-fpm
systemctl enable php-fpm.service
[root@localhost ~]# systemctl restart httpd
下記はphp-fpmデーモンの起動
[root@localhost ~]# systemctl start php-fpm
下記はphp-fpmの自動起動設定
[root@localhost ~]# systemctl enable php-fpm.service
これで、php-fpmとapacheが使えるようになりましたので、
phpファイルを作ってwebブラウザから確認してみましょう
vi /var/www/html/test.php
<?php
phpinfo();
ブラウザから http://192.168.33.10/test.phpにアクセスしてみましょう
下記のphp infoの情報が表示されれば成功です。
コメント