設定を書き換える前にオリジナルをバックアップ。
[root@centos8 ~]# cp /etc/opt/remi/php73/php.ini /etc/opt/remi/php73/php.ini.origPHPの設定は以下を参考にする。
[root@centos8 ~]# wget https://raw.githubusercontent.com/tomgoodsun/centos8_lamp_configs/master/config/etc/opt/remi/php73/php.ini -O /etc/opt/remi/php73/php.iniremiレポジトリでインストールするとphpコマンドではなくphp73コマンドとして認識するので、phpコマンドで認識するように変更する。
[root@centos8 ~]# which php73
/usr/bin/php73
[root@centos8 ~]# cd /usr/bin
[root@centos8 bin]# ln -s php73 php設定を書き換える前にオリジナルをバックアップ。
[root@centos8 ~]# cp /etc/opt/remi/php74/php.ini /etc/opt/remi/php74/php.ini.origPHPの設定は以下を参考にする。
[root@centos8 ~]# wget https://raw.githubusercontent.com/tomgoodsun/centos8_lamp_configs/master/config/etc/opt/remi/php74/php.ini -O /etc/opt/remi/php74/php.iniremiレポジトリでインストールするとphpコマンドではなくphp74コマンドとして認識するので、phpコマンドで認識するように変更する。
[root@centos8 ~]# which php74
/usr/bin/php74
[root@centos8 ~]# cd /usr/bin
[root@centos8 bin]# ln -s php74 php