1. Download Apache Binary with OpenSSL
2. Download PHP5 Binary
3. Install Apache
4. Test 'localhost' in a browser, you should see Apache 'It works!' page.
5. Install PHP5
6. When prompted, choose the correct Apache config directory.
e.g. C:\Program Files\Apache Software Foundation\Apache2.2\conf
7. When that is complete, find PHP section at bottom of Apache httpd.conf and update to the following:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddHandler php5-script php
AddType text/html php
AddType application/x-httpd-php-source phps
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
8. Restart Apache
9. Go to Apache htdocs folder and add a file called test.php with the following code (remove spaces in php tag):
< ? php phpinfo(); ? >
10. Hit localhost/test.php in a browser and verify that you see the phpinfo block.
11. (Optional) If you want to see debug info for php:
change the following in php.ini in PHP directory:
display_errors = On
Restart Apache for changes to php.ini to take effect.
12. Done