Last week I posted an article about localhost doesn’t work in Windows Vista using NOD32 v3.0. Today I almost have the same issue but this time I suspected that it’s my Windows Defender that stopped my Apache from running on Xampp and gave me an error Port 80. I noticed that the Windows Defender is asking me to scan my computer so I decided to let the program finish scanning but to no avail, it did the same thing. Error saying “Apache HTTP Server has stopped working”. According to the pop-up message, Windows is trying to check for solutions as expected by Microsoft nothing was found.

I’m losing my patience because I need to sleep and in a few hours I’ll be going to work. I just cant seem to finish designing a theme that I’ll be releasing to the public soon. Oh well, things are not on my side these days. So what I did is restart my computer and hoping that it might be a glitch only. Unfortunately same thing happened. I didn’t bother to turn off any of my internet security such as Nod32 Anti-virus, Windows Defender and Windows Firewall because I’m positive that those programs I just mentioned are not the culprit.

Further troubleshooting:  Since my localhost has several folders I tried the old folder that I haven’t been using for months now. e.g. http://localhost/”oldfolder”. It gave me hope because I was able to view it, I thought its already fixed. So I went back to new folder were I’m getting the Apache has stopped error apparently nothing was change. Then I sensed that its not really the apache thats giving me headaches but rather it is something in my coding. After several minutes of debugging my codes, I was able to solve the issue. It’s a TEMPLATEPATH php code that shouldn’t be inside the same php file. Who’s to blame? ME :D

Getting the same problem? If my solution didn’t work, care to share your fix?