"Reprint" Apache shutdown unexpectedly startup error resolution

Source: Internet
Author: User

http://blog.csdn.net/dong123dddd/article/details/21372179

XAMPP the error displayed at startup is:

9:52:41 [Apache]
Attempting to start Apache app ...

9:52:41 [Apache]
Status Change detected:running
9:52:42 [Apache] Status Change detected:stopped
9:52:42 [Apache] error:apache shutdown unexpectedly.
9:52:42 [Apache] This is due to a blocked port, missing dependencies,
9:52:42 [Apache] improper privileges, a crash, or a shutdown by another method.
9:52:42 [Apache] Check the "/xampp/apache/logs/error.log" file

9:52:42 [Apache]
And the Windows Event Viewer for more clues


CMD prints the following log by running Apache/bin/httpd.exe:

or 80 ports in the back.

The quickest way to deal with this is to modify the port number:

In/xampp/apache/conf/extra/httpd-ssl.conf

Change Listen 443 to 444 (customizable)


Port is occupied, Apache can not listen to 80 port, how to solve it?

In/xampp/apache/conf/extra/httpd.conf

Change Listen 80 to 88 (customizable)

If vhosts is configured, please change the port in the httpd-vhosts.conf to 88 (same as the upper number)

Second, through the cmd Netstat-ano look at this machine 80, 443 port is occupied no-------here may be occupied by other programs such as IIS, virtual machine, etc.
2. Find the process name that occupies 80, 443 ports by printing tasklist in CMD.
3.taskkill/pid port number to kill this process name, xampp restart Apache.

In summary, the first method is recommended, and the second one is more or less encountered each time it starts.

"Reprint" Apache shutdown unexpectedly startup error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.