Question

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

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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