Apache shutdown unexpectedly

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

Apache shutdown unexpectedly

Postby ChristianChristian » 26. January 2013 12:32

Hi all, I'm a newbie who knows some (x)html(5) and css(3) but no php and MySQL who is very keen to learn php and MySQL hence my to date futile attempt to get XAMPP working. I downloaded then upzipped then tried to start, etc, a few times over the last week to no avail and as such "refreshed my laptop" today to remove all traces of this to have another go, i.e. a fresh start. So this morning (after refreshing my laptop) I:

Unzipped the ZIP to C:
Run xampp-control as an Administrator
Clicked Start next to Apache

I then got:

10:45:23 [main] Initializing Control Panel
10:45:23 [main] Windows Version: 64-bit
10:45:23 [main] XAMPP Version: 1.8.1
10:45:23 [main] Control Panel Version: 3.1.0 Beta 6 [ Compiled: September 20th 2012 ]
10:45:23 [main] Running with Administrator rights - good!
10:45:23 [main] XAMPP Installation Directory: "c:\xampp-win32-1.8.1-vc9\xampp\"
10:45:23 [main] Checking for prerequisites
10:45:23 [main] All prerequisites found
10:45:23 [main] Initializing Modules
10:45:23 [main] Starting Check-Timer
10:45:23 [main] Control Panel Ready
10:45:28 [Apache] Attempting to start Apache app...
10:45:28 [Apache] Status change detected: running
10:45:28 [Apache] Status change detected: stopped
10:45:28 [Apache] Error: Apache shutdown unexpectedly.
10:45:28 [Apache] This may be due to a blocked port, missing dependencies,
10:45:28 [Apache] improper privileges, a crash, or a shutdown by another method.
10:45:28 [Apache] Check the "/xampp/apache/logs/error.log" file
10:45:28 [Apache] and the Windows Event Viewer for more clues

I then when to "C:/xampp/apache/conf/httpd" and changed...

#Listen [::]:80
Listen 80"


#Listen [::]:8080
Listen 8080"


"ServerName localhost:80"


"ServerName localhost:8080"

...but the same thing still happens.

I've looked in "/xampp/apache/logs/" but it is empty, i.e. it doesn't contain "error.log"

Any and all help is very much appreciated? My OS is Windows 8 (and I'm new to this OS). Thanks all!

[EDIT by Altrea: splitted from the original thread because of the "one thread per user and issue" rule]
Posts: 4
Joined: 26. January 2013 12:04
Operating System: Windows 8

Re: Apache shutdown unexpectedly

Postby JonB » 29. January 2013 16:10

If there is no Apache Error log, it means that httpd.exe did not launch.

The most likely problem is that either port 80 or 443 is blocked -

possible causes -

Firewall blocking (add exception)

Other service or application has 80 or 443 in use.

Good Luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache shutdown unexpectedly

Postby ChristianChristian » 29. January 2013 21:34

Thanks Jon, I think that I'll try and change port 443 to another port. Do you happen to know a good port to change it to and which files in would need to be change in and which folder that file is found it? Thanks again, Christian

P.S. Things have moved on at this is where I am now...


...any and all further advice would be greatly appreciated :D
Posts: 4
Joined: 26. January 2013 12:04
Operating System: Windows 8

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests