Ubuntu几乎是日常首选的Linux 操作系统, 特别是青睐Ubuntu LTS 版本。
但是有时在做PHP 开发的时候会用到比较新的PHP 版本。
有以下解决方案:
Website: launchpad.net
http://launchpad.net/~/ondrej/+archive/ubuntu/php
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4
sudo apt-get install apache2 php7.4 libapache2-mod-php7.4 php7.4-mbstring php7.4-mysql php7.4-curl