Hi,
Magento 2 doesn’t support PHP 7.4.
Please refer to Craig’s tutorial How to install Magento 2.3 and build a web server
Refer to the paragraph.
Install PHP and any extensions specifically for Magento 2.3
and run the following command if you want to install php7.2
sudo apt-get install php7.2 libapache2-mod-php7.2 php7.2-mysql php7.2-soap php7.2-bcmath php7.2-xml php7.2-mbstring php7.2-gd php7.2-common php7.2-cli php7.2-curl php7.2-intl php7.2-zip zip unzip -y
or
sudo apt-get install php7.3 libapache2-mod-php7.3 php7.3-mysql php7.3-soap php7.3-bcmath php7.3-xml php7.3-mbstring php7.3-gd php7.3-common php7.3-cli php7.3-curl php7.3-intl php7.2-zip zip unzip -y
if you want to install php 7.3
both contain zip, unzip
Worth to read the following:
Upgrading PHP 7.2.x > 7.3.x
Pawel