Error: Apache shutdown unexpectedly error message
Solution 1
Goto Apache config -> Apache (httpd.config) -> change "Listen 80 to 81"
on broswer-> http://localhost:81/phpmyadmin/
Solution 2
Go to C:\xampp\mysql\backup.
Copy all files.
Paste them into C:\xampp\mysql\data.
If Windows asks you to replace some files, replace them.
If your XAMPP Control Panes is active close it.
Go to C:\xampp and find xampp-control, run it.
Start Apache, start MySQL.
That's it.
Enjoy!
Admin
Updated on November 28, 2020Comments
-
Admin over 3 years
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
toListen 1372
in httpd.conf and also theServerName localhost:80
toServerName 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?
-
Vasantha Kumar Boddu almost 3 yearsThere is file called setup xampp, run it and open xampp control then start Apache and MySql . Its worked for me.