XAMPP - Port 80 in use by “Unable to open process” with PID 4!

XAMPP - Port 80 in use by “Unable to open process” with PID 4!

When you try to start Apache Service from XAMPP control panel you may face the problem that this service can't be run because it can't accesses port 80 of the host server (local site). It may be caused by some services or programs such as skype, Internet Information Services  (IIS), and SQL Server Reporting Service that also use port 80. The error messages will appears like this :

16:00:47 [Apache ] Problem detected!
16:00:47 [Apache ] Port 80 in use by "Unable to open process" with PID 4!
16:00:47 [Apache ] Apache WILL NOT start without the configured ports free!
16:00:47 [Apache ] You need to uninstall/disable/reconfigure the blocking application
16:00:47 [Apache ] or reconfigure Apache and the Control Panel to listen on a different port
16:00:47 [Apache ] Attempting to start Apache app...
16:00:48 [Apache ] Status change detected: running
16:00:49 [Apache ] Status change detected: stopped
16:00:49 [Apache ] Error: Apache shutdown unexpectedly.
16:00:49 [Apache ] This may be due to a blocked port, missing dependencies,
16:00:49 [Apache ] improper privileges, a crash, or a shutdown by another method.
16:00:49 [Apache ] Press the Logs button to view error logs and check
16:00:49 [Apache ] the Windows Event Viewer for more clues
16:00:49 [Apache ] If you need more help, copy and post this
16:00:49 [Apache ] entire log window on the forums

Or see image below :


Here are some options to solve the problem :

Option 1 : Stop other services directly from XAMPP control panel

On XAMPP control panel click Services button (see image above), a new window with services list will appear (see image below, filename is services.msc, extra info).

Then scrolled down to look for 
1. World Wide Web Publishing Service. If it is running, stop it (stop this service option on the left after clicking on the service name) or double clicked on it and clicked STOP (if this service status is Started).
2. Internet Information Services  (IIS). If it is running, stop it (stop this service option on the left after clicking on the service name) or double clicked on it and clicked STOP (if this service status is Started).
3. Web deployment Service (not the exact name though it has Web deployment at the beginning). Stop this service too (the same way as above).
If you are running Skype, exit out of that too, run Apache, then launch Skype

OPTION 2 : Change port directly from XAMPP control panel

Another very easy option is to simply set Apache to listen on a different port (see image below). This can be done by clicking on the "Config" button on the same line as the "Apache" module, select the "httpd.conf" file in the dropdown, then change the "Listen 80" line to "Listen 8080". Save the file and close it.

Now it avoids Port 80 and uses Port 8080 instead without issue. The only additional thing you need to do is make sure to put localhost:8080 in the browser so the browser knows to look on Port 8080. Otherwise it defaults to Port 80 and won't find your local site. This will also require you to restart Apache for the change to take effect.

OPTION 3 : Stop other services by using command prompt or from the programs itself

  1. Skype: skype uses port 80/443 by default. You can change this from tools->options-> advanced->connections and disable checkbox "use port 80 and 443 for addtional incoming connections".
  2. IIS: IIS uses port 80 by default so you need to shut down it. You can use the following two commands 'net stop w3svc' and 'net stop iisadmin'
  3. SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it.
Self-assembling material could produce artificial ...
Forex Volatility and Market Expectation


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Monday, 20 August 2018
If you'd like to register, please fill in the username, password and name fields.

Captcha Image

High Risk Attention and Disclaimer

HIGH RISK - ATTENTION : Forex imply an elevate level of risk which might be not suitable for all investors. Leverage generate further exposition and loss risks. Before to take decision of trading forex, consider carefully yours investment objectives, expertise level and propensity to risk. Past performance is not indicative of future results. Your starting investment might be lost partially or totally. Don’t invest money you cannot afford to lose.  
DISCLAIMER : Pages contained in this web site in any case constitute neither financial counsel service nor solicitation to public saving. Nothing contained in this web site constitute solicitation, offer or recommendation to purchase or sell any investment or to commit in any transaction. Nothing contained in this web site constitute solicitation to investment, fund raising or management for third party. Opinions, article, analysis report, operational report and other documents realized from INDOFOREX.INFO which have to do with market speculation, are dedicated to sustain our individual trading and in any case to represent, solicitation, advice or invest invitation. The web site has just a guise of sharing, cultural and expertise. Although the indication quoted are provided with a mere informative scope, we refuse all responsibility, charged to web site Administrator, for possible negative consequences which should come from an operational funded on their observance.