: This article mainly introduces how to solve the problem that Port 80 of the Win10 System is occupied by the System and Apache cannot be started. if you are interested in the PHP Tutorial, refer to it. In Windows 10, after XAMPP is installed, Apache cannot be started, port 80 is always prompted to be occupied, and no other software is started, the default port 80 is occupied by win10.
How to modify it?
Solution:
Start cmd and enter regedit to open the registry;
Find HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ services \ HTTP;
Find the Start item on the right and change its value to 0;
Restart the System. The System process does not occupy port 80;
After the restart, start Apache again.
In addition, you can run the cmd command to check whether the computer port is occupied. take Port 80 as an example:
Start cmd and enter netstat-aon | findstr: 80 and 80 to display the port number.
We can see that 0.0.0.0: 80 0.0.0.0: 0 LISTENING 4 indicates that a local program is using port 80 for LISTENING.
To find out which program occupies port 80, enter tasklist | findstr "4" in the cmd command, and 4 is the previous process ID;
The specific program occupies port 80.
The above describes how to solve the problem that Port 80 of the Win10 System is occupied by the System and Apache cannot be started, including some content. I hope to help some friends who are interested in the PHP Tutorial.