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
sudo apt install php libapache2-mod-php
then restart apache
sudo service apache2 restart