By perezinn
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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.