Initial configuration of local dev server

Since I can’t post a link, I’m following thesitewizard’s guide for installing php 5 on apache 2.2

I know that PHP is working.
Because manually invoking php from command prompt on a file will parse the output html file correctly
I also know that apache is working.
Because I can 127.0.0.1/ any html file in my htdocs folder

My problem is that files ending in php are not being parsed when viewed with web browsers, rather they are just displayed in plaintext.

I’ve added the following line to my loadmodule section of httpd.conf

LoadModule php5_module "d:/php/php5apache2_2.dll" 

The following line is the very last line of my httpd.conf

PHPIniDir "d:/php"

The paths are correct. I’ve restarted apache, I’ve restarted my computer. I’ve even tried dropping php.ini into my windows folder. I can’t seem to figure out what I’m missing. Any help would be appreciated. Thanks.

Renamed the file and opened that. Turned out I was configuring it correctly. But F5 wasn’t reloading the updated file.

Sponsor our Newsletter | Privacy Policy | Terms of Service