Getting "Apache port: 443 in use by another application" error after installing AMPPS

After installing AMPPS for Windows, when I try to start Apache, I get an error message:

Apache port: 443 is used by another application.

I do not have other programs (which I know), such as Skype, that currently work. How can I control port 443 or change port for Apache?

By the way, I have McAfee as an antivirus.

+4
source share
5 answers

Open a command prompt (start → run → cmd) and enter the following command:

C:\> netstat -aon | findstr 0.0:443 

The final output column is the PID of the application using port 443.

You can find the name of the application in the task manager. Go to the "Process" tab, then in the menu bar of the task manager go to "View" → "Column Selection" → "Check" and click "OK". Find the PID in the list (click "Show processes from all users" if you did not find the PID), the corresponding process is an application using port 443. Stop or delete it to make your AMPPS Apache work.

+14
source

After getting the pid number using netstat -aon | findstr 0.0:443 netstat -aon | findstr 0.0:443 , if you have problems finding pid 443 in the task manager, follow these steps:

Kill process 443 using cmd: taskkill /pid 443 .

You will avoid downloading any software or any other headache.

+2
source

I ran into the same problem as on port 443, the vmware service was started, I went to the task manager and stopped the service, and then started apache, and it worked fine.

+1
source

Here is a more thoughtful way to solve this problem based on comments by Dzhigar and Daniel Padik (thank you guys), so check with what service you get this port problem, in my case it was with Apache and MySQL.

Starting with Apache, either click on the "Logs" button in the XAMPP control panel and open the error log to see the problem or go to the XAMPP installation directory and run the "apache_start.bat" batch file, this will also give the cause of the problem.

Now you have the port number that is causing the problems, Now follow the Jigar comment and run

 netstat -aon | findstr 0.0:443 

Remember that 443 is the port number, so enter the port number that causes the problem. This command will give the process PID using the port as shown below.

 TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 4996 

So 4996 is the process identifier (PID) you want to stop.

Now, with the help of the task manager, you can see and kill the process, but some processes cannot be displayed by the task manager, in this case you must download Mycrosoft Process Explorer , unzip the downloaded package and run the ".exe" file as administrator.

You will find many running processes, sort them using the PID, and you will find your service.

Select this service and stop it.

Then go to your XAMPP control panel and launch Apache, and you can start it this time.

Follow the same process for MySQL.

Enjoy :)

+1
source

To complete any process:

  • open cmd as administrator
  • netstat -aon | findstr 0.0:443
  • shows: TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 4876 , NOTE PID 4876
  • taskkill /pid 4876 /f

To disable the port of another program (vmware):

  • open VMware workstation
  • Change-> Settings ...-> Shared Virtual Machines-> Change Settings-> Yes-> Disable Sharing
  • You can change the port. → Ok
+1
source

All Articles