Today’s topic is-
Port 80 in use by system!
Very often Techies, to narrow it down and call Web developers and relatively other developers encounter this line text.
This line of text “Port 80 in use by system” is not just a text message. This line of text is an error message thrown out of Xampp control panel. This will be quite disgusting when developers find no clue for why this message is been shown up all of a sudden.
Here is what the exact error that you might see as:
Port 80 in use by “system”!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application or reconfigure Apache to listen on a different port
Here is what I have found out!
When you install multiple local servers on local computer’s like IIS from Microsoft and Xampp from Apache friends – each of the servers need a port to listen through. Listening in the sence – what I’ve understood is that it is the command that the user gives the server.
For example – You tell to load your local website set up on your system. See below:
The server will respond to your command and load your website on the browser. That is the server listens and does it in return!!
By default any server that is been installed on your personal computers would listen through “Port number – 80“. It is the default port set for any servers to listen through and react. Though there are many other ports available – this is considered as standard by default.
As far as you have a single server installed on your system – either IIS or Xampp, you don’t run into this Port issue. When you install both the servers installed on a single system – you will encounter this issue.
If it is imperative that you should have both the servers on a single machine – Don’t worry – I have the found the solution.
So that means to say – IIS will still use Port 80 as default. But, Xampp will consider port 81 as default. However, this doesn’t happen automatically – you have to do some modifications to one of the files inside Xampp.
Find the file under the above directory and open the same with the help of any editor. Preferably, Notepad++ which is a small and efficient program for any such quick edits.
First, you need to quit Xampp control panel and then follow the steps.
Please follow the instruction very carefully – any misjudgment and misinterpretation would lead to error.
Step 1: Open httpd.conf with the help of an editor
Step2: Go to line number 47 and change [ Listen 80 to Listen 81 ]. Also feel free to change the same where ever you encounter port number “80” in the file. Better you do a find and replace – so that you won’t miss any occurrence of the “Port number“.
For your convenience I shall list it out – Line number 45, 46, 47 and 184. Make sure that you have made change to all the four occurrence to be on safer side.
Step3: Save and close the file and then run Xampp once again. Now, click on the start button next to Apache – It will run correctly. How ever you will still see the error “Port 80 in use by system” listed out there . But, you need not worry about that error listed there.
From now on – when ever you want to load your local website – please, be sure to type in the port number after localhost. Please see below:
Also, if you want it the other way – you can do it. You can leave “Port 80” for Xampp and change IIS server port to 81. Feel free to visit http://stackoverflow.com/questions/8103924/xampp-port-80-is-busy-easyphp-error-in-apache-configuration-file for more expert talks. You can see people talk about their experience on the same issue.
Guys, that’s it – Hope you got a nice piece of information on solving issues with “Port 80 in use by system“. If you found this article useful – please feel free to share across your friendship network.
Any queries regarding this – please feel free to comment it below on the comment box provided.