Apache Localhost Server display's what ever is in index.php!

Of course I know that it is supposed to do that. But the issue I’m having is that whatever I write in index.php inside my webroot folder for local webserver… The browser displays whatever text I wrote, it does not run the php code. For instance, I tried testing with:

<?php phpinfo(); ?>

And the browser simply showed me that exactly - it didn’t result in the php webpage that it is supposed to show.

But for reference… This is the website of which I learned the steps for setting up php5, apache2.2, and mysql5.1

Make sure you have PHP installed on the server.

Sponsor our Newsletter | Privacy Policy | Terms of Service