I’m not sure if this is a PHP issue or an Apache issue - please help!
I recently installed Apache 2.2 on my home machine so that I could get in some PHP practice. I wrote up a php file, “practice.php”, put it in my Document Root, and went to have a look at it through the browser.
Strange thing is, it didn’t read as PHP at all, but just displayed all HTML and PHP text in plain text format. I made the same file, named it practice.htm, and accessed it again. This time, the HTML headers/footers did not show up, and the HTML text displayed correctly, but the PHP did not display at all.
This leads me to believe that my apache server doesn’t support PHP, but I know that’s not the case - must be a configuration issue, I’m just not sure how to resolve it. Posted on Apache forums as well, but no response yet. Any help would be much appreciated.
Thanks in advance!