I installed phppgadmin using this tutorial. How to Install PostgreSQL and phpPgAdmin on Ubuntu 18.04
The index.html file is showing fine that comes already installed.
But when I made a php file to display phpinfo();, it shows blank page.
This is the output of root@pan0xxx:/# tail -f /var/log/apache2/error.log
root@pan0138:/# tail -f /var/log/apache2/error.log
[Mon Oct 08 00:08:14.178971 2018] [mpm_event:notice] [pid 31651:tid 140420410256320] AH00489: Apache/2.4.29 (Ubuntu) con figured -- resuming normal operations
[Mon Oct 08 00:08:14.178994 2018] [core:notice] [pid 31651:tid 140420410256320] AH00094: Command line: '/usr/sbin/apache 2'
EDIT
Output of /# tail -f /var/log/apache2/error.log after installing php separately.
root@panxxx:/# tail -f /var/log/apache2/error.log
[Tue Oct 09 00:06:22.406750 2018] [mpm_event:notice] [pid 31651:tid 140420410256320] AH00489: Apache/2.4.29 (Ubuntu) configu red -- resuming normal operations
[Tue Oct 09 00:06:22.406777 2018] [core:notice] [pid 31651:tid 140420410256320] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 09 12:05:47.122881 2018] [mpm_event:notice] [pid 31651:tid 140420410256320] AH00491: caught SIGTERM, shutting down
[Tue Oct 09 12:05:47.188994 2018] [mpm_event:notice] [pid 4685:tid 140256460741568] AH00489: Apache/2.4.29 (Ubuntu) configur ed -- resuming normal operations
[Tue Oct 09 12:05:47.189114 2018] [core:notice] [pid 4685:tid 140256460741568] AH00094: Command line: '/usr/sbin/apache2'