Not a Linux fan? Looking for a hassle-free way of setting up a PHP environment on your Windows box? Read as Matthew guides us through the process of installing Apache, MySQL and PHP on a Windows based machine, otherwise known as WAMP.
Installing PHP under Windows - Installation Cont'd - PHP (Page 5 of 6 )
Create the directory C:\php and extract all files in the PHP ZIP file here. You will now need to copy some files to your Apache Directory (C:\Program Files\Apache Group\Apache2\).
Open the file httpd.conf in notepad. Httpd.conf can be found in: C:\Program Files\Apache Group\Apache2\conf\; add the following lines to the end of the file:
Congratulations you have just installed PHP on your computer! But don’t start the part yet, test to make sure it works!
Test PHP
To test that PHP has been correctly installed click ‘Start > All Programs > Apache > Configuration > Test Configuration’. A console window should show briefly then disappear, if this happens then everything is ok, it if stays, take note of any errors and makes sure you haven’t missed any of the instructions above.
Restart Apache
For all the changes to take effect, and Apache to recognize PHP, Apache must be restarted. To do this click ‘Start > All Programs > Apache > Control > Restart’.