Apache not working: Return code: 0

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

Apache not working: Return code: 0

Postby johnbanny » 25. May 2013 08:50

Hi,

I have tried searching everywhere to solve my problem, but have not yet found a soloution.

I have been using xampp for maybe a year now without issues, but all of a sudden mysql would not start but apache did. After a few days they swapped, ie mysql seems to be fine (although i cant get onto phpmyadmin), but apache refuses to run.

Using xampp control panel v3.0.2
Apache and mysql running as a service:

08:38:03 [main] Initializing main
08:38:03 [main] Windows version: 6.1 (build 7601) - Service Pack 1
08:38:03 [main] Xampp version: 1.8.1
08:38:03 [main] Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
08:38:03 [main] Running as admin - good!
08:38:03 [main] Working with basedir: "c:\xampp\"
08:38:03 [main] Initializing moduls
08:38:03 [apache] Initializing module...
08:38:03 [apache] Checking for service (name="Apache2.2"): Service installed
08:38:03 [mysql] Initializing module...
08:38:03 [mysql] Checking for service (name="mysql"): Service installed
08:38:03 [filezilla] Initializing module...
08:38:03 [filezilla] Checking for service (name="FileZilla Server"): Service not installed
08:38:03 [mercury] Initializing module...
08:38:03 [tomcat] Initializing module...
08:38:03 [main] Starting check-timer
08:38:30 [apache] Starting apache service...
08:38:30 [apache] Executing "net start "Apache2.2""
08:38:33 [apache] Return code: 0
08:38:52 [mysql] Starting mysql service...
08:38:52 [mysql] Executing "net start "mysql""
08:38:52 [mysql] Status change detected: running
08:38:57 [mysql] Return code: 0

So, as you can see, mysql starts but not apache.

Any ideas?

Also, if i uninstall both as a service by unticking them in the control panel:

08:40:22 [main] Initializing main
08:40:22 [main] Windows version: 6.1 (build 7601) - Service Pack 1
08:40:22 [main] Xampp version: 1.8.1
08:40:22 [main] Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
08:40:22 [main] Running as admin - good!
08:40:22 [main] Working with basedir: "c:\xampp\"
08:40:22 [main] Initializing moduls
08:40:22 [apache] Initializing module...
08:40:22 [apache] Checking for service (name="Apache2.2"): Service installed
08:40:22 [mysql] Initializing module...
08:40:22 [mysql] Checking for service (name="mysql"): Service installed
08:40:22 [filezilla] Initializing module...
08:40:22 [filezilla] Checking for service (name="FileZilla Server"): Service not installed
08:40:22 [mercury] Initializing module...
08:40:22 [tomcat] Initializing module...
08:40:22 [main] Starting check-timer
08:40:26 [apache] Uninstalling service...
08:40:26 [apache] Executing "c:\xampp\apache\bin\httpd.exe -k uninstall"
08:40:26 [apache] Return code: 0
08:40:26 [apache] Checking for service (name="Apache2.2"): Service not installed
08:40:26 [apache] Successful!
08:40:28 [mysql] Uninstalling service...
08:40:28 [mysql] Executing c:\xampp\\mysql\bin\mysqld.exe --remove mysql
08:40:28 [mysql] Return code: 0
08:40:28 [mysql] Checking for service (name="mysql"): Service not installed
08:40:28 [mysql] Service was NOT (un)installed!
08:40:29 [apache] Starting apache app...
08:40:29 [apache] Executing "c:\xampp\apache\bin\httpd.exe"
08:40:32 [mysql] Starting mysql app...
08:40:32 [mysql] Executing "c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini --standalone"
08:40:33 [mysql] Status change detected: running
08:40:39 [apache] Starting apache app...
08:40:39 [apache] Executing "c:\xampp\apache\bin\httpd.exe"

mysql works but not apache, just sits there saying executing.

Checking netstat:

0.0.0.0 80 4 system
0.0.0.0 445 4 system

Im pretty sure these are the two ports apache normally uses.

Im guessing this is why apache wont start, because system is using it. But cant figure out how to find out what is using it and how to stop it.

Others suggest IIS, or MsDepSvc etc

Any ideas.

Thanks very much for your help as always :D
johnbanny
 
Posts: 7
Joined: 26. February 2012 17:24
Operating System: windows 7

Re: Apache not working: Return code: 0

Postby Altrea » 25. May 2013 10:04

Hi johnbanny,

johnbanny wrote:Checking netstat:

0.0.0.0 80 4 system
0.0.0.0 445 4 system

Apache is using the ports 80 and 443.
445 is a default port for Microsoft Active Directory.

ports 80 and 443 are commonly used by World Wide Web Publishing Service which is part of Microsofts IIS.

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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache not working: Return code: 0

Postby johnbanny » 25. May 2013 18:51

Thanks for the reply, so how do i stock wwwps using those ports so that i can use xampp again.
johnbanny
 
Posts: 7
Joined: 26. February 2012 17:24
Operating System: windows 7

Re: Apache not working: Return code: 0

Postby Altrea » 25. May 2013 23:21

Search the service in your windows services overview and stop it
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache not working: Return code: 0

Postby hackattack142 » 28. May 2013 22:21

Hello,

Out of curiosity, did you install a new version of XAMPP over an old version?

XAMPP 1.8.1 should come with control panel 3.1.0, 3.0.2 comes with XAMPP 1.7.7
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 98 guests