XAMPP - Port 80 in use by “Unable to open process” with PID 4! - Healthy Forex Community
      Register
    Remember me

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
 

Comments

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

Captcha Image

Buka Akun Bitcoin Sekarang

Jual Beli Cryptocurrency

The Best Webhosting

Random Posting

Riko Fernandez
12 November 2015
Forex Academy
 Chief Technical Analyst, John Murphy, is a very popular author, columnist, and speaker on the subject of Technical Analysis. John’s “Ten Laws of Technical Trading” is the best guide available anywher...
Riko Fernandez
30 December 2017
Forex Academy
Bitcoin has evolved in recent years into a speculative investment for individuals seeking alpha from alternative assets and a possible hedge against global uncertainties and weakness in fiat...
Christiano Lee
08 January 2018
Forex Academy
Market Overview
Last week ended with the publication of disappointing NFP jobs numbers from the USA; coming in at 148k, versus expectations of circa 190k. A peculiar number suggesting that retailers, working on ever ...
Anasry Delta Azim
28 November 2017
Forex Academy
Is there anything more annoying than getting stopped out of a short trade on the absolute top tick of the move or being taken out of a long trade on the lowest possible bottom tick, only to have price...
Dr. Rocky Alexander
12 March 2013
Forex Academy
Forex Defenition Forex or FX is the nickname for the Foreign Exchange Market in which currencies are traded or a market where participants buy, sell, and exchange trillions of dollars worth of curren...