Question
Only displays PHP language after LAMP Stack installation
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?
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.
×
Is that the exact code you are using? It seems to be missing the
<?php
at the start of the PHP code. Does this work:I apologize, I’m using exactly the code you showed me. If it helps, I used this tutorial.
[https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu](http://)
Is mod_php installed?