1. Install Apache HTTP Server; (just go to the official site and pick up .msi, and install in default path C:\Program Files(x86)\Apache Software Foundation\ seems to be ok)
2. Install PHP5;
This worth a short paragraph. My understanding of the install steps on PHP website is that it should be automatically taken care of by the installation wizards if it is for a popular http server like apache, and the install wizard UI does indicate that too. But unfortunately I didn’t get it to work in which I either got an general error message or no error message but just not working. So I switch to the zip version of PHP5 which is suggested by some article online and following the steps below makes it work properly:
2.1 Unzip the the zip version of PHP5 to your local disk; (unzip it to C:\Program Files(x86)\PHP5 seems to be working too)
2.2 Open httpd.conf file of Apache HTTP server in a text editor;
2.3 At the end of the http.conf file add following lines to make Apache HTTP Server be aware of PHP5; (adjust you path accordingly)
1: # Begin enable php52: LoadModule php5_module "C:/Program Files (x86)/PHP5/php5apache2_2.dll"3: AddType application/x-httpd-php .php4: PHPIniDir "C:/Program Files (x86)/PHP5"5: # End enable php5
2.4 Save the change and restart Apache HTTP Server, and if successful you should seeNow your Apache HTTP Server should be able to display php content, at least my php based dokuwiki is running perfect.
“Apache/2.2.14(Win32) PHP/5.3.1” in the status bar of Apache Service Monitor.