[Fixed]XAMPP Installation Error:Port 80 or 443 already in use.Apache2.2 service failed.

  • Last Updated :December 13th, 2014

Xampp Installation Errors and Fixes :

After you have installed Xampp on your hard drive, running Mysql, Tomcat, Filezilla, Mercury and other add on components seems to be fairly easy. However, Apache, an essential component needed for your local server may refuse to run.

This usually happens because in some cases another program might be using port 80 ( the port Apache is assign to in C:\xampp\apache\conf\httpd.conf ) and Apache is unable to start.

These are the errors you may encounter In case of your Port :80 is in used by some other Application.

You’ve received an error message advising you that your port is already occupied.

XAMPP Installation Error:Port 80 or 443 already in use.Apache2.2 service failed.

Do you have Skype installed? It’s a known issue that if Skype was installed before XAMPP it will occupy port 80 which is the port that XAMPP needs to communicate with your Internet connection. There’s an easy fix for this problem.

Solution :  Open up Skype and go to Tools and select Options. From the list that appears select Advanced and then Connection. There will probably be a check mark inside where it says “Use port 80 and 443 as alternatives for incoming connections” just unchecked that box and save your changes.

Skype will still function normally and now XAMPP will be able to use port 80 to run.

  1. Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream:

Solution: No such file or directory all this means is you need to create a lang.tmp file and add it to your XAMPP folder. So open up Notepad++ and you will already have a new blank file open.

Go to File and do a Save As name your file lang.tmp and save it to C:XAMPPhtdocsxampp

You can verify your successful installation by looking at Xampp Control panel which will shows “Running” status message in case you installed Xampp successfully.

Alternatively,you can check your Apache Server configured properly or not By Following step:

Now open up your browser (it doesn’t matter which one, IE, Firefox, or Flock) and type this in your address bar: http://localhost/ and press enter. Welcome to the XAMPP index screen.


  • zeeshan May 20, 2011 Reply

    i m very very thankful to u it solve my problem thanks once again

  • jaseena June 29, 2011 Reply

    I dont have Skype on my PC but still i’m getting this error.
    Which application may be causing it?

    • Wordpress Expert July 21, 2011 Reply


      You can stop local IIS service, and try again.100% it will work :)

  • met July 12, 2011 Reply

    hi,sorry i followed ur way but still i get the same error ??? I did changes in skype but again i get the same error,meaning Apache can not start or run,MySql and FileZila are running…any other solution ????…thanks met

  • reygie August 4, 2011 Reply

    Thank you. Great help! God bless

  • Rodrigo August 9, 2011 Reply

    How can i change the XAMPP port from 80 to 8080?

  • chindy August 16, 2011 Reply

    Hey i uninstalled microsoft IIS and skype but i still get the same error.
    Are there any other programms that are using this ports

  • yby September 12, 2011 Reply

    Change the port to 8080 go to xampp directory than apache/conf/ Open httpd.conf for Edit it look and change Listen 0.0:80 to Listen 8080 and ServerName localhost :80 to ServerName localhost :8080.

  • hira kayani September 22, 2011 Reply

    Still getting the same error:
    Apache2.2 service failed, Port 80 or 443 already in use.

    I have tried both skype and local ISS service thng :s
    Need help!!! is there anything else to check ?

  • moon November 4, 2011 Reply

    Thanks.It is really useful :)

  • kausalya December 16, 2011 Reply

    hi, i uninstalled skype, re-installed xampp but still getting the same error.. please help me

  • Ahsan December 18, 2011 Reply

    Oh my God, you saved my day! This skype is really annoying! :(

  • Suraj Singh January 20, 2012 Reply

    Thanks ,and Thanks a lot…………………….

  • Sean Dwayne January 22, 2012 Reply

    I don’t have skype and it’s still not working… Help Please!

  • om January 27, 2012 Reply

    I changed the skype setting but it didn’t work because my skype was still open even after changing setting. After I signed out and completely closed skype I was able to start Apache.

  • Ricardo February 3, 2012 Reply

    Chek if you use Vmware or another program to virtual machines !!

    Inside Vmware Workstation go to Edit–> preference –> Shared Vms click in Change Settings, and change port number to 445, or another number, and apply it. check if you use firewall, and go to firewall rules inside windows in control painel and check if apache is forwarded, and if you use anti virus like Avast, check it too in firewall, do not install xampp inside programefiles(x86)/,

    By !

  • Adi Rian March 3, 2012 Reply

    Oh Jezz, I was planning to uninstall my windows because my apache keep not working even though I reinstalled few times, but finally I read skype issue and now working perfectly. Thanks buddy for your help

  • ericmorgan March 16, 2012 Reply

    many thanks for admin, very helpfull !!!!
    it’s work

    regds from newbie

  • santiyana March 25, 2012 Reply

    hey bro .
    i have also same problem . i have uninstalled skype from my laptop and it doesn’t work. i read your guide and suggestions suddenly i saw the problem might occur because of virtual machines. what i want to tell you is i have installed oracle virtual box and what to do in the case of oracle virtual box. how do i change port number in oracle virtual box?

  • chnmessi April 4, 2012 Reply

    i find the answer in your comments.the real reason is the vmware workstation , it uses the 443 ssl,then i change the port to the 447.it works,oh ,my god ,before i ingnore the 443 port

  • Sam April 5, 2012 Reply

    but skype is not installed on my laptop and i m geting d same msg during installation on xampp..plz give suggestion..

  • Sam April 5, 2012 Reply

    as said by chnmess i also got the answer..my laptop is also having the vmware workstation..then how to change the port no. of vmware workstation… plz reply…….

  • qasim June 13, 2012 Reply

    God bless you for the article.
    will run ahead and try this now.

  • wali naimi September 25, 2012 Reply

    I have the same problem and I’m not using Skype how can i fix XAMPP Installation Error:Port 80 or 443 already in use.Apache2.2 service failed. please let me know. thanks

  • Alex November 6, 2012 Reply

    you might need to change the port number by change http.conf file under Xamppappacheconf folder. Search for “Listen 80″ and change it to something else “Listen 81″ also for search for “Listen Localhost:80” and change it to “Listen localhost:81”.
    Also, you need to change port 443 to something else it will be under apache extra folder ( Xamppappacheconfextra find httpd-ssl.conf)search for listen 443 and change it to listen 442 or something else.
    then you can access your webserver using your new port. http:/localhost:81/
    Alternatively, you can stop service worldwide web from your service list and use apache on its default ports

  • Boutheina November 16, 2012 Reply

    thanks a lot y’ve saved my time

Leave a Reply

Let us start meaningful discussion.