Fix PHP Ubuntu 18.10 phpinfo shows blank Page (PHP 7.0)

get an error when trying to check phpinfo(), it shows blank page. That problem caused by, you have not installed libapache2-mod-php. So, install with : sudo apt install php libapache2-mod-php then restart apache  sudo service apache2 restart