Error: Apache shutdown unexpectedly error message

◇◆丶佛笑我妖孽 提交于 2019-12-11 16:53:27

问题


I just upgraded the PHP version of XAMPP from PHP 7.1.7 to PHP 7.2.0 using the guidelines from this article.

Then I tried restarting the XAMPP but I got this error:

10:54:47 AM  [Apache]   Error: Apache shutdown unexpectedly.
10:54:47 AM  [Apache]   This may be due to a blocked port, missing dependencies, 
10:54:47 AM  [Apache]   improper privileges, a crash, or a shutdown by another method.
10:54:47 AM  [Apache]   Press the Logs button to view error logs and check
10:54:47 AM  [Apache]   the Windows Event Viewer for more clues
10:54:47 AM  [Apache]   If you need more help, copy and post this
10:54:47 AM  [Apache]   entire log window on the forums

After that I opened up my Skype and in the Connection tab, I disabled the checkobox "Use port 80 and 443 for alternatives for incoming connections". Then I tried restarting the Apache but again I got the error message.

Next thing that I did was changing the Listen 80 to Listen 1372 in httpd.conf and also the ServerName localhost:80 to ServerName localhost:1372 in the same file. And then tried to start the Apache but one more time I got the same error.

I also changed this:

<VirtualHost _default_:443>

ServerName www.example.com:443

to this:

<VirtualHost _default_:4433>

ServerName localhost:4433

in the httpd-ssl.conf file. But until now the Apache can not start and returns the same error message.

So what should I do now?


回答1:


Goto Apache config -> Apache (httpd.config) -> change "Listen 80 to 81"

on broswer-> http://localhost:81/phpmyadmin/




回答2:


If you have installed Skype Software .

Then Open Skype:

Go to Menu:

Tools -> Options -> Advanced -> Connection.

Uncheck the "Use port 80 and 443 for additional for incoming connections"

Sign Out and Close the Skype software. Then restart your Apache.




回答3:


please do these steps as well

In the Control Panel, click on the main Config button again. Click on Service and Port Settings. Change the Main Port to 8080 and the SSL Port 4433. Close out of Configuration. Stop and Start Apache. Click the Admin button by Apache and it should open up the XAMPP home page in your browser.

I hope this will work!



来源:https://stackoverflow.com/questions/48057197/error-apache-shutdown-unexpectedly-error-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!