Solving the problem of XAMPP port occupation

WBOY
Release: 2016-07-29 09:08:50
Original
971 people have browsed it

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>
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!