I had a problem starting WAMP and XAMPP on my PC running Windows Vista. Perhaps because I also program in Microsoft Visual Studio and use IIS 7, localhost (also used by WAMP and XAMP) was not available and a couple of processes blocked the launch of the WAMP and XAMP servers.
I found multiple solutions but they only worked partially.
I combined a few and came up with the solution below.
I created two bat files (just use notepad and save as .bat):
startApache.bat:
and stopApache.bat:
use startApache.bat before you launch your WAMP of XAMPP server and stopApache.bat after (or before you want to use IIS7 again)