Step 1
aptitude install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" >> /etc/apt/sources.list
aptitude update
Step 2
aptitude install php7.4-cli
aptitude install php7.4-fpm
aptitude install php7.4-bcmath
aptitude install php7.4-mysql
aptitude install php7.4-curl
aptitude install php7.4-gd
aptitude install php7.4-imagick
aptitude install php7.4-intl
aptitude install php7.4-mbstring
aptitude install php7.4-xmlrpc
aptitude install php7.4-xsl
aptitude install php7.4-dev
aptitude install zip php7.4-zip
aptitude install php-pear
aptitude install php7.4-soap
aptitude install php7.4-xml
pecl install timezonedb