• Install Remi Repository

[root@testsvr01 ~]# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

[root@testsvr01 ~]# yum -y install yum-utils

  • Enable PHP 8.1 Repo

root@testsvr01 ~]# yum-config-manager --enable remi-php81

  • Install PHP 

[root@testsvr01 ~]# yum install php -y

[root@testsvr01 ~]# php -v
PHP 8.1.13 (cli) (built: Nov 22 2022 14:42:07) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies
 

Technology