[CentOS8.3] php8.0のインストール

centOS8.3にphp8.0をインストールします。

# cat /etc/redhat-release
CentOS Linux release 8.3.2011

# dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
# dnf module list php
CentOS Linux 8 – AppStream
Name Stream Profiles Summary
php 7.2 [d] common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php 7.4 common [d], devel, minimal PHP scripting language

Remi’s Modular repository for Enterprise Linux 8 – x86_64
Name Stream Profiles Summary
php remi-7.2 common [d], devel, minimal PHP scripting language
php remi-7.3 common [d], devel, minimal PHP scripting language
php remi-7.4 common [d], devel, minimal PHP scripting language
php remi-8.0 common [d], devel, minimal PHP scripting language

# dnf install php80
# dnf install php80-php-cli php80-php-pdo php80-php-fpm php80-php-json php80-php-mysqlnd php80-php-mbstring php80-php-xml
# php80 -v
# sudo alternatives –install /usr/bin/php php /usr/bin/php80 1
# php -v
PHP 8.0.9 (cli) (built: Jul 29 2021 12:53:58) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.9, Copyright (c) Zend Technologies

OK^^