はじめに
IUS Community Projectを利用してCentOS7にPHP7.2をインストール
親記事:PHP, PHP-FPMの各種インストール方法とEOLまとめ
参考:Usage - IUS
サポート
本手法で導入した場合、PHP: Supported Versions/PHP: Unsupported Branchesより、2020-11-30がEOLになると思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。
LOG
インストール
# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
... 略
# yum install -y mod_php72u php72u-cli which
... 略
各種確認
# which php
/usr/bin/php
# php -v
PHP 7.2.22 (cli) (built: Aug 30 2019 15:12:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
# yum info mod_php72u
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: nrt.edge.kernel.org
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Installed Packages
Name : mod_php72u
Arch : x86_64
Version : 7.2.22
Release : 1.el7.ius
Size : 10 M
Repo : installed
From repo : ius
Summary : PHP module for the Apache HTTP Server
URL : http://www.php.net/
License : PHP and Zend and BSD and MIT and ASL 1.0 and NCSA
Description : The mod_php72u package contains the module which adds support for the PHP
: language to Apache HTTP Server.
# yum info php72u-cli
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.riken.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Installed Packages
Name : php72u-cli
Arch : x86_64
Version : 7.2.22
Release : 1.el7.ius
Size : 15 M
Repo : installed
From repo : ius
Summary : Command-line interface for PHP
URL : http://www.php.net/
License : PHP and Zend and BSD and MIT and ASL 1.0 and NCSA and PostgreSQL
Description : The php-cli package contains the command-line interface
: executing PHP scripts, /usr/bin/php, and the CGI interface.