June 28th, 2019
For my work, I was attempting to set up a Magento 2 instance to upgrade some of our Magento 1 instances in a development environment, but I was running into an issue installing the extensions needed.
Below is the command I ended up using for Ubuntu to install all the necessary extensions for Magento 2 on PHP 7.2:
sudo apt-get install -y php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-mcrypt php7.2-curl php7.2-intl php7.2-xsl php7.2-mbstring php7.2-zip php7.2-bcmath php7.2-iconv php7.2-soap
**Note: It appears at the time of writing this that mcrypt is not yet out for PHP7.2 but it’s ok to ignore this error.