Apache with Xampp does not start by blocked ports

Log detail:

13:41:13  [main]    Initializing Control Panel
13:41:13  [main]    Windows Version:  Pro  64-bit
13:41:13  [main]    XAMPP Version: 7.0.8
13:41:13  [main]    Control Panel Version: 3.2.2  [ Compiled: Nov 12th 2015 ]
13:41:13  [main]    You are not running with administrator rights! This will work for
13:41:13  [main]    most application stuff but whenever you do something with services
13:41:13  [main]    there will be a security dialogue or things will break! So think 
13:41:13  [main]    about running this application with administrator rights!
13:41:13  [main]    XAMPP Installation Directory: "d:\xampp\"
13:41:13  [main]    Checking for prerequisites
13:41:13  [main]    All prerequisites found
13:41:13  [main]    Initializing Modules
13:41:13  [Apache]  Problem detected!
13:41:13  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
13:41:13  [Apache]  Apache WILL NOT start without the configured ports free!
13:41:13  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:41:13  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:41:13  [Apache]  Problem detected!
13:41:13  [Apache]  Port 443 in use by "E:\vmware\vmware-hostd.exe -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 4128!
13:41:13  [Apache]  Apache WILL NOT start without the configured ports free!
13:41:13  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:41:13  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:41:13  [main]    Starting Check-Timer
13:41:13  [main]    Control Panel Ready
13:41:16  [Apache]  Problem detected!
13:41:16  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
13:41:16  [Apache]  Apache WILL NOT start without the configured ports free!
13:41:16  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:41:16  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:41:16  [Apache]  Problem detected!
13:41:16  [Apache]  Port 443 in use by "E:\vmware\vmware-hostd.exe -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 4128!
13:41:16  [Apache]  Apache WILL NOT start without the configured ports free!
13:41:16  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:41:16  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:41:16  [Apache]  Attempting to start Apache app...
13:41:16  [Apache]  Status change detected: running
13:41:18  [Apache]  Status change detected: stopped
13:41:18  [Apache]  Error: Apache shutdown unexpectedly.
13:41:18  [Apache]  This may be due to a blocked port, missing dependencies, 
13:41:18  [Apache]  improper privileges, a crash, or a shutdown by another method.
13:41:18  [Apache]  Press the Logs button to view error logs and check
13:41:18  [Apache]  the Windows Event Viewer for more clues
13:41:18  [Apache]  If you need more help, copy and post this
13:41:18  [Apache]  entire log window on the forums

Port 80 apache log the pid process 4

How can I fix it if it is a system process?

 5
Author: jpussacq, 2016-08-05

4 answers

To close processes that are using those ports, you can use the microsoft toolTCPVIEW, which gives you a detailed list of the processes that are running and the ports that each process is using.

Look for the process that is using port 80 and 443 in the list that will appear and then you right click on that process and choose end process, be careful when closing processes as they may be being used by the system and you could do some damage.

The use of Port 80 in windows can be by the World wide Web publishing service (World Wide Web Publishing Service) of IIS if you have nothing running in IIS you can disable it without problem, look in the windows services if this service is running and stop or disable it.

 5
Author: Juan Pinzón, 2016-08-05 13:08:46

I think this answer from Microsoft Answers can be of help to you. It explains how to change the Port of the Apache server so that it does not conflict with the port 80 that is already in use on your PC.

Basically comments that you should access the httpd file.conf , which is usually in directory where_is_installed_apache/conf and change Port 80 to the one you prefer (e.g. 8080).

Listen 0.0.0.0: 80 change it to Listen 0.0.0.0:8080

Listen [::0]:80 change it to Listen [::0]:8080

ServerName localhost:80 change it to ServerName localhost:8080

Of course, to access everything you deploy on Apache, you must access through localhost:8080, that is, you must explicitly tell it that you want to access port 8080. If not specified one port, the browser assumes you want to access the 80.

 0
Author: Roger Garcia, 2020-06-11 10:54:57

I have had this problem many times, and in the end, the best thing has been to reinstall everything considering a number of considerations, I tell you:

  1. uninstall any previous service manager.
  2. delete any previous XAMPP install folder from C:\Program Files
  3. disable Windows Firewall or another firewall that we have next to the antivirus.
  4. lower the "Account Control settings" to a minimum. user "
  5. Download xampp-win32 - 1.8.1-VC9 - installer.exe or later (¡¡do not use other previous versions or Lite version!!)
  6. we start the installation. (Install in C:)
  7. when we finish the installation, we start the Apache and MySQL services in the Control Panel.
  8. Finally, the services should come out in green, if everything went well.
 0
Author: Pedro, 2016-08-05 13:35:48

To me it happened that there was a process that was using the port, and change the configuration of xampp is not connected, I played on this case leave xampp with its default port and go to the task manager and look there for such a service, in this moment I don't remember the name and I'm not at my pc, but it is a sql service, reviews, if you end xampp works.

At least it served me

 0
Author: Christian JG, 2016-08-09 14:13:30