Error: Apache shutdown unexpectedly

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

Error: Apache shutdown unexpectedly

Postby AmaGeni » 05. December 2012 01:22

Hi. I am a complete newbie when it comes to setting up a local host and i have run into the following error when trying to start Apache.

00:06:05 [Apache] Error: Apache shutdown unexpectedly.
00:06:05 [Apache] This may be due to a blocked port, missing dependencies,
00:06:05 [Apache] improper privileges, a crash, or a shutdown by another method.
00:06:05 [Apache] Check the "/xampp/apache/logs/error.log" file
00:06:05 [Apache] and the Windows Event Viewer for more clues

and here is my error log

[Tue Dec 04 21:53:09.680872 2012] [ssl:warn] [pid 12428:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Dec 04 21:53:09.774472 2012] [mpm_winnt:notice] [pid 12428:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Tue Dec 04 21:53:09.774472 2012] [mpm_winnt:notice] [pid 12428:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Tue Dec 04 21:53:09.774472 2012] [core:notice] [pid 12428:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Dec 04 21:53:09.790072 2012] [mpm_winnt:notice] [pid 12428:tid 252] AH00418: Parent: Created child process 3148
[Tue Dec 04 21:53:11.506075 2012] [ssl:warn] [pid 3148:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Dec 04 21:53:11.568475 2012] [mpm_winnt:notice] [pid 3148:tid 264] AH00354: Child: Starting 150 worker threads.

Is there anybody out there that can help me with simple instructions lol. Thank you all very much
AmaGeni
 
Posts: 1
Joined: 05. December 2012 01:18
XAMPP Version: 5.6.3
Operating System: windows 7

Re: Error: Apache shutdown unexpectedly

Postby dushyantv » 05. December 2012 09:44

I am facing the same issue since last two week and after searching all over the Google, finally I decided to request on this forum.

First error soon after the control panel starts

1 - port 80 is used by the system

and soon after when I clicked on Apache to start its give me

2.
00:06:05 [Apache] Error: Apache shutdown unexpectedly.
00:06:05 [Apache] This may be due to a blocked port, missing dependencies,
00:06:05 [Apache] improper privileges, a crash, or a shutdown by another method.
00:06:05 [Apache] Check the "/xampp/apache/logs/error.log" file
00:06:05 [Apache] and the Windows Event Viewer for more clues

please provide a proper solution for this error, any help is appreciated !!

Computer Configuration

Window 7 -64 bit operating system
Mcafee antivirus (firewall and security setting handled by antivirus itself )
dushyantv
 
Posts: 1
Joined: 05. December 2012 07:47
XAMPP Version: 5.6.3
Operating System: Windows 7

SOLUTION -> Re: Error: Apache shutdown unexpectedly

Postby Munding » 05. December 2012 22:21

Hi there,

Had same problem as you guys.

The solution is as follows:

Open the file c:\wamp\Apache2\conf\httpd.conf in NotePad!!

Go to the line "Listen 80" (around line 40)
Edit it to "Listen 8081"
Save and exit.


That should do it. :-)


Regards
Dennis Munding
Denmark
Munding
 
Posts: 1
Joined: 05. December 2012 19:38
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: SOLUTION -> Re: Error: Apache shutdown unexpectedly

Postby Altrea » 05. December 2012 23:16

Hi Dennis Munding,

Munding wrote:The solution is as follows:
[...]

Sorry, but that is no solution, that is a workaround.

Munding wrote:Open the file c:\wamp\Apache2\conf\httpd.conf

Wamp? That is a XAMPP Board. There is no folder wamp or a folder Apache2 in it.

In your explaination two things are missing:
  • the changes can only take effect, if Apache will be restartet
  • after the change you have to add the port to every request like so: http://localhost:8081

best wishes,
Altrea
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: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: Error: Apache shutdown unexpectedly

Postby hackattack142 » 05. December 2012 23:32

To the OP, you will need to post the entire XAMPP control panel log to provide more information.

To the second poster, System typically indicates a Windows Service is using that port. A common one is World Wide Publishing Service (part of IIS).
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 703
Joined: 20. May 2011 23:29
XAMPP Version: 5.6.3
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests