Apache unexpectedly shut down

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache unexpectedly shut down

Postby Delphi31 » 14. June 2021 21:00

I just installed XAMPP but cannot get Apache to work. I have given new port values in both the httpd.conf (8080) and httpd-ssl.conf (4343) files but it still won't connect. It is very odd because this worked two days ago...

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

This is my first post. Is there anything else that is required for someone to answer this question?

Thanks!
Delphi31
 
Posts: 4
Joined: 14. June 2021 20:51
XAMPP version: 8.0.7
Operating System: Windows 10

Re: Apache unexpectedly shut down

Postby Delphi31 » 15. June 2021 14:46

This is what it says when I run it as administrator...

Initializing Control Panel
9:41:17 AM [main] Windows Version: Home 64-bit
9:41:17 AM [main] XAMPP Version: 8.0.7
9:41:17 AM [main] Control Panel Version: 3.3.0 [ Compiled: Apr 6th 2021 ]
9:41:17 AM [main] Running with Administrator rights - good!
9:41:17 AM [main] XAMPP Installation Directory: "c:\xampp\"
9:41:17 AM [main] Checking for prerequisites
9:42:49 AM [main] All prerequisites found
9:42:49 AM [main] Initializing Modules
9:42:49 AM [main] The Tomcat module is disabled
9:42:49 AM [main] Enabling autostart for module "Apache"
9:42:49 AM [main] Enabling autostart for module "MySQL"
9:42:49 AM [main] Starting Check-Timer
9:42:49 AM [main] Control Panel Ready
9:42:51 AM [Apache] Autostart active: starting...
9:42:51 AM [Apache] Attempting to start Apache service...
9:42:51 AM [mysql] Autostart aborted: MySQL is already running
9:42:54 AM [Apache] Status change detected: running
9:42:55 AM [Apache] Status change detected: stopped
9:42:55 AM [Apache] Error: Apache shutdown unexpectedly.
9:42:55 AM [Apache] This may be due to a blocked port, missing dependencies,
9:42:55 AM [Apache] improper privileges, a crash, or a shutdown by another method.
9:42:55 AM [Apache] Press the Logs button to view error logs and check
9:42:55 AM [Apache] the Windows Event Viewer for more clues
9:42:55 AM [Apache] If you need more help, copy and post this
9:42:55 AM [Apache] entire log window on the forums

I can't see where there might be an error with Apache. The error logs don't show any new errors since last Friday.

Apache error logs
[Fri Jun 11 17:25:23.951979 2021] [ssl:warn] [pid 16876:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 17:25:24.381515 2021] [ssl:warn] [pid 16876:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 17:25:28.385812 2021] [mpm_winnt:notice] [pid 16876:tid 580] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7 configured -- resuming normal operations
[Fri Jun 11 17:25:28.385812 2021] [mpm_winnt:notice] [pid 16876:tid 580] AH00456: Apache Lounge VS16 Server built: May 18 2021 10:45:56
[Fri Jun 11 17:25:28.385812 2021] [core:notice] [pid 16876:tid 580] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jun 11 17:25:28.391830 2021] [mpm_winnt:notice] [pid 16876:tid 580] AH00418: Parent: Created child process 16796
[Fri Jun 11 17:25:29.464883 2021] [ssl:warn] [pid 16796:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 17:25:29.734699 2021] [ssl:warn] [pid 16796:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 17:25:29.776588 2021] [mpm_winnt:notice] [pid 16796:tid 608] AH00354: Child: Starting 150 worker threads.
[Fri Jun 11 18:49:31.972983 2021] [ssl:warn] [pid 9324:tid 556] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 18:49:33.815312 2021] [ssl:warn] [pid 9324:tid 556] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 18:49:42.269174 2021] [mpm_winnt:notice] [pid 9324:tid 556] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7 configured -- resuming normal operations
[Fri Jun 11 18:49:42.269174 2021] [mpm_winnt:notice] [pid 9324:tid 556] AH00456: Apache Lounge VS16 Server built: May 18 2021 10:45:56
[Fri Jun 11 18:49:42.269174 2021] [core:notice] [pid 9324:tid 556] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jun 11 18:49:42.386136 2021] [mpm_winnt:notice] [pid 9324:tid 556] AH00418: Parent: Created child process 35204
[Fri Jun 11 18:49:46.099805 2021] [ssl:warn] [pid 35204:tid 576] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 18:49:46.348198 2021] [ssl:warn] [pid 35204:tid 576] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 18:49:46.653816 2021] [mpm_winnt:notice] [pid 35204:tid 576] AH00354: Child: Starting 150 worker threads.
[Fri Jun 11 19:32:51.656325 2021] [ssl:warn] [pid 2916:tid 632] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 19:32:52.451741 2021] [core:warn] [pid 2916:tid 632] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jun 11 19:32:52.674341 2021] [ssl:warn] [pid 2916:tid 632] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 19:33:11.164793 2021] [mpm_winnt:notice] [pid 2916:tid 632] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7 configured -- resuming normal operations
[Fri Jun 11 19:33:11.164793 2021] [mpm_winnt:notice] [pid 2916:tid 632] AH00456: Apache Lounge VS16 Server built: May 18 2021 10:45:56
[Fri Jun 11 19:33:11.164793 2021] [core:notice] [pid 2916:tid 632] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jun 11 19:33:11.164793 2021] [mpm_winnt:notice] [pid 2916:tid 632] AH00418: Parent: Created child process 10076
[Fri Jun 11 19:33:11.966695 2021] [ssl:warn] [pid 10076:tid 620] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 19:33:12.167170 2021] [ssl:warn] [pid 10076:tid 620] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 11 19:33:12.220548 2021] [mpm_winnt:notice] [pid 10076:tid 620] AH00354: Child: Starting 150 worker threads.
[Fri Jun 11 19:38:51.650235 2021] [php:error] [pid 10076:tid 1848] [client ::1:56928] script 'C:/xampp/htdocs/JMWoodCo/contact.php' not found or unable to stat
Delphi31
 
Posts: 4
Joined: 14. June 2021 20:51
XAMPP version: 8.0.7
Operating System: Windows 10

Re: Apache unexpectedly shut down

Postby Altrea » 15. June 2021 15:03

What isnthe output of apache_start.bat?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11091
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Apache unexpectedly shut down

Postby Delphi31 » 15. June 2021 15:46

I found my error. I had inserted a LoadModule for php because I had read it on stackoverflow.com (because the php wouldn't execute!). Anyway someone posted a topic similar to my issue on there and I could only find the error by following this:
Control Panel > System and Security > Administrative Tools > Event Viewer > Windows Logs > Application > Error.
My error was:
httpd.exe Syntax error on line 75 (where I inserted the LoadModule) of C:/xampp/apache/conf/httpd.confL LoadModule takes two arguments, a module name and the name of the shared object file to load them.

Hopefully this helps out someone else.
Delphi31
 
Posts: 4
Joined: 14. June 2021 20:51
XAMPP version: 8.0.7
Operating System: Windows 10

Re: Apache unexpectedly shut down

Postby Delphi31 » 15. June 2021 15:49

I guess I should mention that I deleted the LoadModule that I had inserted and Apache started right up!
Delphi31
 
Posts: 4
Joined: 14. June 2021 20:51
XAMPP version: 8.0.7
Operating System: Windows 10

Re: Apache unexpectedly shut down

Postby Altrea » 15. June 2021 16:23

If you register the windows service for Apache the critical errors are rerouted to the windows event log.
But you should have gotten the same error if started the process in console (like by double clicking the apache_start.bat)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11091
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 83 guests