end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

rhel8でdefaultのphp 7.2を 7.4へ update

https://access.redhat.com/solutions/6809611

↑↓の通りです

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)

$ /usr/bin/php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

$ yum list installed | grep php
php.x86_64         7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-cli.x86_64     7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-common.x86_64  7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-devel.x86_64   7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-fpm.x86_64     7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-gd.x86_64      7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-pdo.x86_64     7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-pear.noarch    1:1.10.5-9.module+el8.1.0+3202+af5476b9 @rhel-8-for-x86_64-appstream-rpms        
php-pgsql.x86_64   7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-process.x86_64 7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms        
php-xml.x86_64     7.2.24-1.module+el8.2.0+4601+7c76a223   @rhel-8-for-x86_64-appstream-rpms 

$ sudo yum module reset php
$ sudo yum module list php
Name   Stream   Profiles                  
php    7.2 [d]  common [d], devel, minimal
php    7.3      common [d], devel, minimal
php    7.4      common [d], devel, minimal
php    8.0      common [d], devel, minimal

$ sudo yum module enable php:7.4
$ sudo yum update php

$ /usr/bin/php -v
PHP 7.4.30 (cli) (built: Jun  7 2022 08:38:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies