Home > Article > Backend Development > Solving the problem of XAMPP port occupation
When I was using XAMPP a few days ago, I suddenly got the following error and couldn't start it.
Error:
<code><span>17</span>:<span>05</span>:<span>33</span> [Apache] Error: Apache shutdown unexpectedly. <span>17</span>:<span>05</span>:<span>33</span> [Apache] This may be due <span>to</span><span>a</span> blocked port, missing dependencies, <span>17</span>:<span>05</span>:<span>33</span> [Apache] improper privileges, <span>a</span> crash, <span>or</span><span>a</span> shutdown <span>by</span> another method. <span>17</span>:<span>05</span>:<span>33</span> [Apache] Check <span>the</span><span>"/xampp/apache/logs/error.log"</span><span>file</span><span>17</span>:<span>05</span>:<span>33</span> [Apache] <span>and</span><span>the</span> Windows Event Viewer <span>for</span> more clues</code>
In fact, the problem is that the port is occupied. Here is the modification method
Modify the two ports yourself:
1. Go to xamppapacheconf in this directory, open httpd.conf, and change all 80 ports in it to an unoccupied port, such as 8001
2. Go to xamppapacheconfextra in this directory, open httpd-ssl.conf, and change the Replace all 443 ports with an unoccupied port, such as 4431
After I modified the port, the port conflict problem was solved. I hope it will be helpful to everyone~
').addClass('pre-numbering') .hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the solution to the XAMPP port occupation problem, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.