How do I install PHP 7.3 FPM and CLI for Magento 2.3 to Debian 10?

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.3-cli 
aptitude install php7.3-fpm
aptitude install php7.3-bcmath
aptitude install php7.3-mysql 
aptitude install php7.3-curl 
aptitude install php7.3-gd
aptitude install php7.3-imagick 
aptitude install php7.3-intl 
aptitude install php7.3-mbstring 
aptitude install php7.3-xmlrpc 
aptitude install php7.3-xsl 
aptitude install php7.3-dev 
aptitude install zip php7.3-zip 
aptitude install php-pear 
aptitude install php7.3-soap
aptitude install php7.3-xml
pecl install timezonedb

See also: