phpとphpMyAdminとMySQLのバージョンについて

phpとphpMyAdminとMySQLのサポートと対応バージョンのリンク集です。

PHP Supported Versions
https://www.php.net/supported-versions.php

phpMyAdmin.net
https://www.phpmyadmin.net/

Which PHP versions does phpMyAdmin support? (phpMyAdmin.net)
https://docs.phpmyadmin.net/en/latest/faq.html#which-php-versions-does-phpmyadmin-support

Which Database versions does phpMyAdmin support? (phpMyAdmin.net)
https://docs.phpmyadmin.net/en/latest/faq.html#which-database-versions-does-phpmyadmin-support

php81.png

おまけ

CentOS の PHP は本当に安全か?
https://qiita.com/bezeklik/items/0823b14789d96f847d09

各OSへPHPをREMIリポジトリを使ってインストーする方法
https://rpms.remirepo.net/wizard/

例)
Operating system and version selection
Operating system: EL 7 (maintained until June 2024)
Wanted PHP version: 8.1.2 (active support until November 2023)
Type of installation: Default / Single version (simplest way)

Wizard answer
- CentOS 7 provides PHP version 5.4 in its official repository

旧バージョンがあるかどうか確認する
yum list installed | grep php
存在していたら削除する
yum remove php*

- Command to install the EPEL repository configuration package:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

- Command to install the Remi repository configuration package:
yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm

- Command to install the yum-utils package (for the yum-config-manager command):
yum install yum-utils

You want a single version which means replacing base packages from the distribution

- Packages have the same name than the base repository, ie php-*

- Some common dependencies are available in remi-safe repository, which is enabled by default

- PHP version 8.1 packages are available for CentOS 7 in remi-php81 repository

- Command to enable the repository:
yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php81

- You can check the list of the enabled repositories:
yum repolist

- If the priorities plugin is enabled, ensure remi-php81 have higher priority (a lower value) than base and updates

- Command to upgrade (the repository only provides PHP):
yum update

- Command to install additional packages:
yum install php-xxx

- Command to install testing packages:
yum --enablerepo=remi-php81-test install php-xxx

- Command to check the installed version and available extensions:
php --version
php --modules

ふむふむ。
ぐっどらっこ