📅  最后修改于: 2022-03-11 14:54:45.478000             🧑  作者: Mango
#Add ondrej PPA repository to your system.
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
#Install php7.3 and check it's installed.
sudo apt install -y php7.3
php -v
#This also works for php 7.4, php7.2 and php5.6. Just change the relevant digits