Amazon AMI – Upgrade PHP from 5.6 to 7.3

cp /etc/php.ini php.ini.20200708
yum remove php*
yum install php73 php73-mysqlnd php73-common php73-gd php73-mbstring php73-mcrypt php73-devel php73-xml

Remember to check apache log to make sure there is no error or warning.