Thanks @Bob_Puts. That step fixes it for me, however Ive got it on Apache. So for me the steps are as follows:
-
Upgrade to Ubuntu 18.04.2 LTS - do-release-upgrade
-
Install the package again:
apt install curl apache2 composer fping git graphviz imagemagick libapache2-mod-php7.2 mariadb-client mariadb-server mtr-tiny nmap php7.2-cli php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-snmp php7.2-xml php7.2-zip python-memcache python-mysqldb rrdtool snmp snmpd whois -
Change time zone in php files in :
/etc/php/7.2/cli/php.ini
/etc/php/7.2/apache2/php.ini -
Reboot my server
Of couse I have to run ./validate php and fix certain things that needs to be fixed which is self explanatory on the result