LoginSignup
4
3

More than 3 years have passed since last update.

CentOS8.0にPHP7.3をdnfでインストールする

Posted at

サポート期限を確認しておく

バージョンについておさらい...:writing_hand_tone2:
参考: PHPのリリース日とサポート期限

今回はPHP7.3をインストールしてみる:baby_tone2::point_up_tone1:

CentOS8.0にPHP7.3をdnfでインストールする

まずは、おまじない :ok_hand_tone1:
EPELリポジトリとRemiリポジトリを追加します。

$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

必要最小限でインストール。

$ sudo dnf module install -y php:remi-7.3

できたできた:clap_tone2:
バージョンを確認する

$ php -v
PHP 7.3.12 (cli) (built: Nov 19 2019 10:24:51) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.12, Copyright (c) 1998-2018 Zend Technologies

よしゃ:ok_hand_tone2:

おまけ(自分用メモ)

個人的に必要そうなものもサクッと追加:muscle_tone1:

sudo dnf install php-mysqlnd php-pecl-xdebug php-intl php-zip
4
3
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
4
3