Install PHP5
Unzip the PHP zip to C:/PHP (Create the Dir PHP at C:/ root level) Next: Shut down Apache;
Crank up your favorite editor again and open the apache httpd.conf and add two lines of code:
LoadModule php5_module C:/php/php5apache2.dll
AddType application/x-httpd-php .php
<edit> Added .php extension to show how to parse .php files</edit>
I have added those two to the very bottom of the httpd.conf file.
<edit>Note: See Message 11 below on where to put the LoadModule directive!</edit>
Verify that the path in the LoadModule directive points to the dir where PHP is installed.
Next, copy/paste "php.ini-dist" to C:/Program Files/Apache Group/Apache2, and rename it to php.ini.
In order to get a working WAMP we need to copy from C:/PHP root and from C:/PHP/ext some DLLs to Apache2 root (Where you did paste your renamed copy of php.ini) those are:
fdftk.dll
fribidi.dll
gds32.dll
libeay32.dll
libmash.dll
libmysql.dll
libmysqli.dll
msql.dll
ntwdblib.dll
php5apache2.dll
php5apache.dll
php5apache_hooks.dll
php5isapi.dll
php5nsapi.dll
php5ts.dll
phpmsql.dll
phpmssql.dll
phpmysql.dll
phpmysqli.dll
ssleay32.dll
yas.dll
We need to set the PHP path for Windows:
Go to:
Control Panel > System > Advanced tab
Click on "Environment variables"
Look in the "System variables" pane
Find the "Path" entry
Double click it and add at the end of the string your PHP dir
You need to start with ";" without double quotes!
And follow by: C:\php
So it will look like: ";C:\php" Again, without double quotes!
Now restart the Apache server.
Test: Create a simple file such as php5_info.php
<? phpinfo();?>
Save it in C:/Program Files/Apache Group/Apache2/htdocs/php5_info.php
Open a browser and enter the following address http://localhost/php5_info.php it should display your complete PHP setting if it does not work properly you might have done something wrong with the multiple edits; check them out and give it another go.
Open up C:/Program Files/Apache Group/Apache2/php.ini. First, stop Apache
On line 276, you may change:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
to
error_reporting = E_ALL