猫

desktop Red Hat Enterprise Linux release 10.1

Red Hat Enterprise Linux release 10.1 の場合
1.https://ftp.riken.jp/Linux/fedora/epel/10.0/Everything/x86_64/Packages/e/epel-release-10-6.el10_0.noarch.rpm
をinstallしておきます。
2.rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-10.rpm をinstall
3.nano /etc/profile.d/php85.sh
#!/bin/bash
source /opt/remi/php85/enable
export X_SCLS=”`scl enable php85 ‘echo $X_SCLS’`” を作成
4.dnf –enablerepo=remi install php85-php -y
5.scl enable php85 bash
6.php -v を確認
php8.5.1の場合
[root@rhel10 ~]# php -v
PHP 8.5.1 (cli) (built: Dec 16 2025 15:59:07) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi’s RPM repository
Zend Engine v4.5.1, Copyright (c) Zend Technologies
with Zend OPcache v8.5.1, Copyright (c), by Zend Technologies
[root@rhel10 ~]# となります。
