LoginSignup
3
2

More than 1 year has passed since last update.

CentOS 8 で PHP 7.2 から PHP 7.3 へアップグレード(AppStream)

Last updated at Posted at 2020-01-18

はじめに

Application Stream(AppStream)を利用してCentOS8にPHP7.3をアップグレードインストール
参考:ユーザー空間コンポーネントのインストール、管理、および削除 Red Hat Enterprise Linux 8 | Red Hat Customer Portal

サポート

各Streamのサポート期間はRed Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portalを参照。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。
なおCentOS Linux 8が2021-12にEOLを迎えるため、それ以降の更新を受けるためにはCentOS Stream8を含めた他ディストリビューションへの移行が必要。

LOG

PHP7.2(default)インストール

# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)

# yum install -y php
... 略

# php -v
PHP 7.2.11 (cli) (built: Oct  9 2018 15:09:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Stream切り替え

# yum distro-sync
# yum module reset php
# yum module enable php:7.3
# yum distro-sync

# php -v
PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2