複数のバージョンの PHP を切り替えて使う #CentOS – Qiita
初めまして、よろしくお願いします。CENTOS8に既にPHP7.3… – Yahoo!知恵袋
RockyLinux8だったらphp5.6を入れられそうな気がする。
Operating system and version selection Operating system: EL 8 Wanted PHP version: 5.6.40 (no upstream support since January 2019) - SCL and EL-8 only Type of installation: Multiple versions simultaneously Architecture: x86_64 Wizard answer EL 8 provides PHP version 7.4, 8.2 in its official repository WARNING, PHP version 5.6 have reached its end of life, despite packages have security fixes, you should consider a maintained version. Command to enabled the CRB repository: dnf config-manager --set-enabled powertools Command to install the EPEL repository configuration package: dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm Command to install the Remi repository configuration package: dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm You want multiple versions which means using a Software Collection (SCL) Installation of a default version is recommended, using SCL only for additional versions Tips: For Software Collection usage read: My PHP Workstation The php56 collection is available in the remi-safe repository Command to install: dnf install php56 Command to install additional packages: dnf install php56-php-xxx Command to install testing packages: dnf --enablerepo=remi-test install php56-php-xxx Command to check the installed version and available extensions: php56 --version php56 --modules When a single version is installed, command in default path (/usr/bin/php) can be installed: dnf install php56-syspaths
Operating system and version selection Operating system: EL 10 Wanted PHP version: 5.6.40 (no upstream support since January 2019) - SCL and EL-8 only Type of installation: Multiple versions simultaneously Architecture: x86_64 Wizard answer EL 10 provides PHP version 8.3 in its official repository WARNING, PHP version 5.6 have reached its end of life, despite packages have security fixes, you should consider a maintained version. Command to enabled the CRB repository: dnf config-manager --set-enabled crb Command to install the EPEL repository configuration package: dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm Command to install the Remi repository configuration package: dnf install https://rpms.remirepo.net/enterprise/remi-release-10.rpm
You want multiple versions which means using a Software Collection (SCL)
Installation of a default version is recommended, using SCL only for additional versions
Tips: For Software Collection usage read: My PHP Workstation
Sorry, but PHP version older than 7.4 are not available for EL 10 (x86_64).
