Amazon Lunix 2023の場合はこちら
Amazon Lunix 2023にPHPをインストール
remiリポジトリをインストールした後に・・・
yum -y install --enablerepo=epel,remi-php74 php74-php php74-php-mbstring php74-php-pear php74-php-fpm php74-php-mcrypt php74-php-mysql php74-php-pdo php74-php-zip php74-php-dom php74-php-xml php74-php-gd
「php74」ではモジュールが入らいため、「php74-php」にする
yum search --enablerepo=epel,remi-php74 php74-php-mbstring
参考)https://pointsandlines.jp/server-infra/aws/ec2-apache-php
参考)https://it-jog.com/wordpress/install-php74-wpress
参考)https://qiita.com/nagahama/items/2fdc820791bee5d564ca
php -vで表示されない場合はシンボリックの作成が必要
php74を探す
find / -name php74
ln -s /usr/bin/php74 /usr/bin/php