Fixed — Apache2 or PHP showing blank page

This blank page generally come when you are not installed a libapache2-mod-php module in php.

  1. Install php module for Apache with sudo apt-get install libapache2-mod-php
  2. Restart Apache service.

3. Place code to the /var/www/html/phpinfo.php

4. Navigate web-browser to http://localhost/phpinfo.php

Note: this method works for Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.
Please let me know if your issue has been resolved or not.

My Official Website:- www.vetechno.in

--

--

Im Youtuber

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store