Report this

What is the reason for this report?

Only displays PHP language after LAMP Stack installation

Posted on October 8, 2014

I did the LAMP Stack Installation and the last step was to create a info.php file with the code

phpinfo();
?>```

That would display my PHP info page. Only displays the language PHP on the browser. How do I get display the PHP result?


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!

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.

This question was answered by @kamaln7:

Is mod_php installed?

sudo apt-get install libapache2-mod-php5
sudo service apache2 restart

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.