Here's how I got it working:
- Install PHP 4.4.9 from http://www.wampserver.com/en/#addons-php
- Install Apache 2.0.63 from http://www.wampserver.com/en/#addons-apache
- Left click the WampServer tray icon, then Apache→Version→2.0.63, wait a minute, then PHP→Version→4.4.9
- Test Apache by opening the command line and running
C:\wamp\bin\apache\Apache2.0.63\bin\apache.exe
. Fix any error reported, and repeat until you don't get any errors. - Icon→Apache→Service→Install Service
- Icon→Restart All Services
In my case, the Apache errors were:
Syntax error on line 22 of C:/wamp/alias/phpmyadmin.conf: The specified IP address is invalid.
Syntax error on line 22 of C:/wamp/alias/sqlbuddy.conf: The specified IP address is invalid.
Syntax error on line 22 of C:/wamp/alias/webgrind.conf: The specified IP address is invalid.
The lines with errors were all the same: Allow from ::1
. I commented them out to #Allow from ::1
, which seemed to fix the error.
If you have trouble switching back to php5:
- Open
C:\Wamp\bin\php\php5.4.16\wampserver.conf
. Add the following lines:
$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll'; $phpConf['apache']['2.4']['AddModule'] = '';
- Exit WampServer then start it again.