ve Techno

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.
sudo service apache2 restart

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

<?php
phpinfo();
?>

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

--

--