Upgrade PHP on Ubuntu 14

Starting with PHP 5.5.9 on Ubuntu 14. Upgrade PHP to 7.2

sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
sudo apt-get install libapache2-mod-php7.2 -y

sudo a2dismod php5
sudo a2enmod php7.2
sudo service apache2 restart

Got recommendation to add apache2 repo as well. Complied.

Initial tests showing everything working as before. 

Website performance seems faster.


Install mcrypt

https://www.techrepublic.com/article/how-to-install-mcrypt-for-php-7-2/

Create mcrypt.ini in /etc/php/7.2/apache2/conf.d

phpenmod mcrypt