Hi,
this is how it worked for me (hope I didn't forget something):
Uninstall everything you installed so far (make a backup of scripts or important configuration data first)
1) Installation basics
Since you might run into troubles if your installation paths contain white spaces I'd suggest to think a little bit about where to install stuff.
In most cases when I install WAMP (WindowsApacheMysqlPhp) I choose to install all packages into one base directory, e.g.
c:\wamp\apache
c:\wamp\php
c:\wamp\mysql
2) apache
Download the latest apache release for Windows. If you do not want to use the new features of apache 2.x I'd suggest to download the latest 1.3.x release since sometimes problems occur when using php with apache 2.x.
Execute the msi installer and install apache into c:\wamp\apache (or wherever you want it to be)
The installer normally installs apache as service on NT/2K/XP but if you cant see a services in the services tab you can install it manually by executing
apache -k install
manually in the apache bin directory.
3) php (apache-1.3.27)
download the latest php4 packages (the ZIP version, not the MSI Installer version)
unzip the contents of the zip file to e.g. c:\wamp\php
Copy the php4ts.dll and all dll's in the dlls folder to the system (98/ME) or system32 (NT/2K/XP) folder.
copy the php.ini-dist to your windows or winnt directory and rename it to php.ini
Edit the httpd.conf of your apache installation and add the following lines.
LoadModule php4_module c:/wamp/php/sapi/php4apache.dll
(add this to the end of the LoadModule list)
AddModule mod_php4.c
(add this to the end of the AddModule list)
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
(add these lines somewhere below AddModule, e.g. where the gzip type is defined but you can also place it directly behind the AddModule mod_php4.c)
Then restart apache ... in most cases php should work fine after that 🙂
If you want to use some of the php extensions you need to uncomment (remove the 😉 in front of the extension=??? line and restart apache.
Additionally you might need to adjust the extensions_dir configuration variable in php.ini to the extensions folder (e.g. c:\wamp\php\extensions)
Check if everything is working fine with a little phpinfo() script placed into htdocs.
I hope I didn't forget something, just post again if something goes wrong 🙂
Thomas