Page 1 of 1

Need help with apache:Error: Apache shutdown unexpectedly.

PostPosted: 28. January 2013 08:40
by sagar_php
I have downloaded and installed xampp-win32-1.8.1-VC9-installer on my windows 8.
Whenever I change the configuration settings of apache in httpd.conf Apache is throwing this error.
I have to uninstall-install the xampp again to make it functional.
But again when i change the configuration settings, the same thing repeats.
I am trying to set up the virtual host on my windows 8.
Thank You.

The following error occur

1:09:44 PM [Apache] Attempting to start Apache app...
1:09:44 PM [Apache] Status change detected: running
1:09:44 PM [Apache] Status change detected: stopped
1:09:44 PM [Apache] Error: Apache shutdown unexpectedly.
1:09:44 PM [Apache] This may be due to a blocked port, missing dependencies,
1:09:44 PM [Apache] improper privileges, a crash, or a shutdown by another method.
1:09:45 PM [Apache] Check the "/xampp/apache/logs/error.log" file
1:09:45 PM [Apache] and the Windows Event Viewer for more clues

The error.log is not updated accordingly.
There is no port blocked.
I have checked it in task manager resource monitor listening ports.
Thank You.

Re: Need help with apache:Error: Apache shutdown unexpectedl

PostPosted: 28. January 2013 08:56
by sagar_php
I got the error.
I tried running apache through command line windows and found out.
Anybody stuck on the same issue. Please do ping me for the solution
All i did was run httpd.exe from cd xampp/apache/bin httpd.exe
It showed a syntax error which i corrected.
Thank You.

Re: Need help with apache:Error: Apache shutdown unexpectedl

PostPosted: 28. January 2013 09:50
by Altrea
Hi sagar_php,

sagar_php wrote:It showed a syntax error which i corrected.

Your thread would be a better help if you would tell us, which syntax error you corrected and how you corrected it.

best wishes,
Altrea

Re: Need help with apache:Error: Apache shutdown unexpectedl

PostPosted: 29. January 2013 14:14
by shikind11
Hi Sagar,

Could you please post the solution as I too face the same problem?

Thanks

Re: Need help with apache:Error: Apache shutdown unexpectedl

PostPosted: 29. January 2013 16:02
by JonB
Since the OP did not fully explain, I will.

Code: Select all
All i did was run httpd.exe from cd xampp/apache/bin httpd.exe
It showed a syntax error which i corrected.


The problem was a syntax error in either an Apache Directive or a resource named in an Apache .conf file.

By running httpd.exe from the Command Line the error is returned in the Command Window. In most cases you can also glean the same information from the Apache Error Log (its the same output stream)

Ok?

:mrgreen: