Amazon Linux2 に PHP 7.4 をインストールする
Amazon Linux2 に PHP 7.4 をインストールする手順をメモしておきます。
EPEL と remi を有効化し、remi から PHP をインストールします。
yum -y install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install --enablerepo=remi-php74 php74
今回は PHP 7.4.12 がインストールされました。