How To Troubleshoot XAMPP Apache Not Running on Windows 7

XAMPP is one of the popular Web development tool for Windows. It is an aggrupation of Apache server, Mysql database and some FTP services, if you choose to install. It comes with a simple control panel, where you can start or stop a service locally with just a button of click.

Lately, I’ve experience issues with XAMPP, it won’t able to start Apache, doesn’t matter how much time I clicked that start button it won’t start my local server and there is no error showing from the XAMPP control panel. In that case there are few methods you can try to figure out what’s wrong with your XAMPP won’t able to start Apache server.

Method one: If no error is showing via XAMPP, start Apache from CMD

This method almost always give you more information. To do that simply launch your cmd from start menu.

Navigate to where XAMPP install dir, or drag the batch file “apache_start” to the command prompt and run the batch file. If this is the first time you have install XAMPP, meaning you have yet to have the chance to configure which language to display, the error message you get might not be in English. In this some part of the error message is showing in English. So we are lucky enough to identity the problem.

Only one usage of each socket address (protocol/network address/port) is normally permitted. make_sock: could not bind to address [::]:433

2012-04-02_2001

It appears that Apache won’t able to start is because port 443 is taken by some other processes. First of all, why Apache need port 443 ? Well apparently, port 443 is the default port for HTTPS, and 80 for HTTP. In order for Apache to start, the default configuration of Apache requires to have both port open.

So that lead to us, how do I know which application is using port 443 ?

If you run the following commend

netstat -o -n -a | findstr 0.0:443

2012-04-02_2001_001

You can see that there is this application with PID 2064 is currently using this port, more specifically it’s listening this port.

So now the question is, how do I know which process is running with the PID 2064 ?

It’s easy, go to Task Manager >; (Process Tab) View >; Select Columns …  Pick PID (should be the first if not checked)

2012-04-02_2002

Now we go back to Task Manager, woha ! We’ve found the process that with the PID 2064. It appears it’s something running from VMware. wmware-hostd.exe is running, and this is the process that’s causing trouble occupying port 443 lead to Apache won’t start.

Two Solutions on Apache won’t start due to port 443 taken by other applications

There are two ways you can go around this, first the most obvious way is to stop the process that’s currently running which is using port 443. You can kill it by press “End Process”. But things didn’t just solve itself that easily in my case. Sometimes after killing the process, it will automatically restart again. I tried to search on VMware forum to disable or change the port but no success.

So this lead to my second approach, which is to change the apache HTTPS 443 port to something else, that are currently not listened by any other processes.

If you go to C:xampp\apache\conf\extra\httpd-ssl.conf (or wherever your XAMPP or apache installed)

2012-04-03_0022

Find the line where it says Listen 443, change it to Listen 4330 OR some other port that you know for sure no other process will use. Save it and go to XAMPP control panel to start apache.

And guess what ! Now you have apache running again.

2012-04-02_2359

This is just one of the issues I’ve encountered. I’m sure there are other people will have the same issue and have no idea where to start. This is happening with my Windows 7 machine running VMware Workstation 8.0. I don’t recall back when I have WorkStation 7.x I encountered this issue. So it must been with the new version of VMware Workstation that caused this. Of course, another way to fix this issue is to uninstall VMware Workstation 8, but I suppose that’s not a very good solution

  • Maxtor9999

    It works! Thank you!!!

  • Ssk8323

    this is more helpful, I used this, no words. 

  • Co Kazemi

    very helpful, thanks

  • Sas2505

    many many thanks……….
    got the same problem and the solution worked perfectly

  • Akku

    This information was very useful. I faced exactly the same problem.
    Thanks a lot!!

  • Redpanda

    Thank you for the post. It really worked. 

  • Auie

    Thank you!!

  • Daniel Skinner

    Worked – thanks. Might be worth noting I had to press ‘Show processes from all users’ to get all the processes including the offending vmware server to show.

  • Jan

    Thanks alot…

  • pixelngrain

    Amazing solution!…. just like pro and expert.. thanks a lot..

  • Devlopr

    your Apache was still started at Port 80..that great ;)

  • rnds

    How about if it’s [::]:80 & not could bind to address 0.0.0.0:80?

  • Bhagwat Singh

    Thanks a Lot.. :-)

  • http://www.facebook.com/FlavioBzz Flavio Bezzeccheri

    Thank you!

  • Irfan Anwar

    MAn u are great, Thanks

  • BenjaminKayEight

    i had to do 2 things to fix it as i also had port 80 being used

  • http://www.facebook.com/chonathun Aeh Chonathun Vattanasutt

    I had to set port 80 to 800 too and also had to go set ports on xmapp for the last step before it works.

  • ehsan

    You are officially my hero

  • TreeFallinTim

    Thanks for that!

  • http://www.facebook.com/adrian.lozano.969 Adrian Lozano

    Thanks! this worked for me … I saw somewhere that vmware or even teamviewer could be giving troubles to apache but I was unsure how to check.

    • Jonathan Hu

      you’re right, those are just some of the common programs that might have port conflict with Apache

  • david

    perfect solution! congratulations

  • jtlodi

    Thanks Jonathan … very clear instructions … if you were here, I’d buy you a beer!

  • randomanon

    big thanks for this

  • ak

    thank u very much.. excellent…

  • yassin sabar

    how to disable HTTPS (SSL) in xampp ?

  • EdenW

    Thank you a lot!

  • Mugé

    Works! Thx a mil…

  • Héctor Van Moji
  • Suman

    Perfect solution. I just changed port 443 to 4430 and it started working! :) Thank you so much.