Under the Windows 10 system, after installing XAMPP, Apache never started. It kept prompting that port 80 was occupied and no other software was started. Finally, after searching, I found out that the win10 system occupied port 80 by default.
How to modify?
Solution:
Start cmd and enter regedit, open the registry;
Find: HKEY_LOCAL_MACHINESYST EMCurrentControlSetservicesHTTP;
Find the Start item on the right and change its value to 0;
Restart the system , the System process will not occupy port 80;
After restarting, just start Apache.
In addition, you can also use 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, 80 means you want to check port number.
You can see 0.0.0.0:80 0.0.0.0:0 LISTENING 4, which means that a local program is listening on port 80.
To find out which program is occupying port 80, you can continue to enter in the cmd command: tasklist|findstr "4", 4 is the previous process ID;
You can find out which program is occupying port 80 port.
The above introduces the solution to the problem that port 80 of Win10 system is occupied by System and Apache cannot be started, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.