how to fix a http://my_domain/info.php blank site problem

  • Posted March 30, 2020
  • PHP

I was following the tutorial of setting lamp server stack and at the end when the time to run the simple php script and have the page display the php norman server information page all I get was the blank page with this <?php phpinfo(); ?> how can I fix it ?

please help


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @perezinn,

Usually when experiencing a blank page on a .php file, it means there is an issue with the code. In this case everything does seem okay with the page itself.

Having said that, most probably an PHP extension is missing. To confirm this, ssh to your Droplet

ssh root@DropletIp

Go to your DocumentRoot and execute the file like so

cd /path/to/website/
php info.php

The PHP command will actually execute the file just like you would from the Browser however it will provide you with the error as well. From there you should be able to see what is missing and install it.

Regards, KDSys