Page 1 of 1

Error: Apache shutdown unexpectedly

PostPosted: 05. December 2012 01:22
by AmaGeni
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

Re: Error: Apache shutdown unexpectedly

PostPosted: 05. December 2012 09:44
by dushyantv
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 )

SOLUTION -> Re: Error: Apache shutdown unexpectedly

PostPosted: 05. December 2012 22:21
by Munding
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

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

PostPosted: 05. December 2012 23:16
by Altrea
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

Re: Error: Apache shutdown unexpectedly

PostPosted: 05. December 2012 23:32
by hackattack142
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).