参考: https://www.how2shout.com/linux/how-to-install-php-7-4-on-ubuntu-22-04-lts-jammy-linux/
apt install software-properties-common
add-apt-repository ppa:ondrej/php -y
apt install php7.4
apt install php7.4-{cli,common,curl,zip,gd,mysql,xml,mbstring,json,intl}
update-alternatives --config php