- Log in to post comments
- List available PHP Version
[root@testsvr01 ~]# yum module list php
Last metadata expiration check: 0:06:25 ago on Wed 07 Dec 2022 06:36:16 PM UTC.
CentOS Stream 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
php 8.0 common [d], devel, minimal PHP scripting language
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
root@testsvr01 ~]# yum module reset php
Last metadata expiration check: 0:07:02 ago on Wed 07 Dec 2022 06:36:16 PM UTC.
Dependencies resolved.
Nothing to do.
Complete!
root@testsvr01 yum.repos.d]# yum module enable php:8.0
Last metadata expiration check: 0:07:14 ago on Wed 07 Dec 2022 06:36:16 PM UTC.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Enabling module streams:
httpd 2.4
php 8.0
Transaction Summary
================================================================================
Is this ok [y/N]: y
Complete!
[root@testsvr01 ~]# yum install php