Apache wont start

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

Apache wont start

Postby JulioLS » 15. April 2014 10:26

XAMPP version: 1.8.3 (xampp-win32-1.8.3-4-VC11-installer)

Operating system version: Windows 7 Ultimate, 32 bit, SP1

XAMPP installation path: D:\xampp (partition on laptop hard drive, the windows system being installed on C:\)

No changes made to config, apache would not start in a clean installation.

Actions: Clean install using the above mentioned installer. Opened the xampp control panel (run as admin). Mysql starts properly, but apache starts and then stops almost immediately. Obviously I expect it to start and remain running. I did subsequently change the ports (see below) but to no avail, still starts and then immediately stops.

Error reported by Xampp control panel is as follows:


7:00:32 [main] Initializing Control Panel
17:00:32 [main] Windows Version: Windows 7 Ultimate SP1 32-bit
17:00:32 [main] XAMPP Version: 1.8.3
17:00:32 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
17:00:32 [main] Running with Administrator rights - good!
17:00:32 [main] XAMPP Installation Directory: "d:\xampp\"
17:00:32 [main] Checking for prerequisites
17:00:32 [main] All prerequisites found
17:00:32 [main] Initializing Modules
17:00:32 [Apache] Initializing module...
17:00:32 [Apache] Checking for module existence...
17:00:32 [Apache] Checking for required tools...
17:00:32 [Apache] Checking for service (name="Apache2.4"): Service installed
17:00:32 [Apache] Service Path: "D:\xampp\apache\bin\httpd.exe" -k runservice
17:00:32 [Apache] Checking default ports...
17:00:32 [mysql] Initializing module...
17:00:32 [mysql] Checking for module existence...
17:00:32 [mysql] Checking for required tools...
17:00:32 [mysql] Checking for service (name="mysql"): Service not installed
17:00:32 [mysql] Service Path: Service Not Installed
17:00:32 [mysql] Checking default ports...
17:00:32 [mysql] Portblocker Detected: mysqld.exe
17:00:32 [mysql] Checking for App: d:\xampp\mysql\bin\mysqld.exe
17:00:32 [mysql] Portblocker Path: d:\xampp\mysql\bin\mysqld.exe
17:00:32 [mysql] Portblocker Service Path:
17:00:32 [mysql] XAMPP MySQL is already running on port 3306
17:00:32 [main] The FileZilla module is disabled
17:00:32 [main] The Mercury module is disabled
17:00:32 [main] The Tomcat module is disabled
17:00:32 [main] Enabling autostart for module "Apache"
17:00:32 [main] Enabling autostart for module "MySQL"
17:00:32 [main] Starting Check-Timer
17:00:32 [main] Control Panel Ready
17:00:32 [Apache] Autostart active: starting...
17:00:32 [Apache] Checking default ports...
17:00:32 [Apache] Attempting to start Apache service...
17:00:32 [Apache] Executing "net start "Apache2.4""
17:00:33 [mysql] Autostart aborted: MySQL is already running
17:00:34 [Apache] Status change detected: running
17:00:37 [Apache] Status change detected: stopped
17:00:37 [Apache] Error: Apache shutdown unexpectedly.
17:00:37 [Apache] This may be due to a blocked port, missing dependencies,
17:00:37 [Apache] improper privileges, a crash, or a shutdown by another method.
17:00:37 [Apache] Press the Logs button to view error logs and check
17:00:37 [Apache] the Windows Event Viewer for more clues
17:00:37 [Apache] If you need more help, copy and post this
17:00:37 [Apache] entire log window on the forums
17:00:38 [Apache] Return code: 0


Log of apache is as follows:

[Tue Apr 15 17:00:35.103014 2014] [ssl:warn] [pid 5292:tid 436] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 15 17:00:35.884039 2014] [ssl:warn] [pid 5292:tid 436] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 15 17:00:36.005043 2014] [mpm_winnt:notice] [pid 5292:tid 436] AH00455: Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 configured -- resuming normal operations
[Tue Apr 15 17:00:36.005043 2014] [mpm_winnt:notice] [pid 5292:tid 436] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Tue Apr 15 17:00:36.005043 2014] [core:notice] [pid 5292:tid 436] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Tue Apr 15 17:00:36.107046 2014] [mpm_winnt:notice] [pid 5292:tid 436] AH00418: Parent: Created child process 6748
(20014)Internal error: AH00530: initialisation: bug or getaddrinfo fail
[Tue Apr 15 17:00:37.051076 2014] [mpm_winnt:crit] [pid 5292:tid 436] AH00419: master_main: create child process failed. Exiting.


Windows Event Viewer shows the following in the windows system log:

"The Apache2.4 service terminated with service-specific error Incorrect function.."

If I use the "apache_installservice.bat" at the command prompt, I get the following:

Installing Apache2.4 as an Service
Installing the Apache2.4 service
The Apache2.4 service is succesfully installed
Testing httpd.conf....
Errors reported here must be corrected before the service can be started
Now we Start Apache2.4 :)
The Apache2.4 service is starting..
The Apache2.4 service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.

Press any key to continue . . .


Netstat shows no use of ports 80 or 443. Even so, I tried changing to 8080 and 4499 as recommended by some people here, but it made no difference. I also turned off windows firewall, again no effect. The log files suggest the problem is internal rather than port conflict or firewall issues.

Any help to get it working would be appreciated! please note that I will be away over easter weekend, but I will pick up any posts made during that time on my return.

Thanks very much in advance.
JulioLS
 
Posts: 2
Joined: 15. April 2014 09:42
Operating System: Windows 7

Re: Apache wont start

Postby radibg2 » 15. April 2014 12:11

I have the same problem but i am with Windows 8.1(all other is the same).
----------------------
I've closed the CMD window in left of the xampp icon and it started.
radibg2
 
Posts: 3
Joined: 15. April 2014 12:08
Operating System: Xubuntu 14.04 | Windows 8.1

Re: Apache wont start

Postby JulioLS » 24. April 2014 04:44

Thanks for your post.

But I dont have any CMD window open.
JulioLS
 
Posts: 2
Joined: 15. April 2014 09:42
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 51 guests