Question

Only displays PHP language after LAMP Stack installation

Posted October 8, 2014 3k views

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?
3 comments

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.

×
1 answer

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

Submit an Answer