Page 1 of 2

Apache Won't Start (Windows XP SP2) - XAMPP 1.7.7 (SOLVED)

PostPosted: 05. October 2011 02:03
by ScottyBoy
First, let me say that I did read the FAQ, and saw that the most common cause of this issue is Firewall related. But after disabling the firewall, Apache still refuses to start. I also checked to make sure that nothing else is running on port 80 (such as Skype) and there doesn't appear to be anything else using it.

Any ideas of what I should try next?
Scotty

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:09
by Sharley
Hello Scotty,

Which XAMPP version?
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670

Use the new xampp-control-3-beta.exe control panel in the xampp folder as it will give a better reading of why Apache can't start.

Also use the Netstat button to find what is using port 80 and port 443 as either of these ports in use will prevent Apache from starting.

Did you look in the Apache error log for clues?
\xampp\apache\logs\error.log

If there is no Apache error log file then Apache has never started, as it creates the file and makes entries every time it starts and stops.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:37
by ScottyBoy
I'm using version 1.1.7. There doesn't appear to be an Apache error log, and according to the Netstat page, there are no other processes using ports 80 or 443. Thanks for the help so far, it's much appreciated. :)

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:41
by Sharley
Try a reboot as often this solves some strange issues with XP.

Let me know back if you still have this issue also do you use ZoneAlarm or similar security apps?

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:50
by ScottyBoy
Doesn't seem to have changed anything. And I don't have any antivirus or security apps installed that I can see.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:53
by Sharley
What did the log window of the version 3 control panel say, you could paste the xampp-control-3-beta.log file from the xampp folder after running the control panel3.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 02:57
by ScottyBoy
Code: Select all
4:20:09 PM  [main]    Initializing main
4:20:09 PM  [main]    Windows version: 5.1 (build 2600) - Service Pack 2
4:20:09 PM  [main]    Xampp version: 1.7.7
4:20:09 PM  [main]    Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
4:20:09 PM  [main]    Running as admin - good!
4:20:09 PM  [main]    Working with basedir: "c:\xampp\"
4:20:09 PM  [main]    Initializing moduls
4:20:09 PM  [mysql]    "c:\xampp\mysql\bin\mysqld.exe" seems to be running on port 3306?
4:20:09 PM  [main]    Starting check-timer
4:20:15 PM  [mysql]    Stopping mysql service...
4:20:47 PM  [apache]    Starting apache app...
4:20:59 PM  [main]    Deinitializing moduls
4:20:59 PM  [main]    Deinitializing main

6:30:07 PM  [main]    Initializing main
6:30:07 PM  [main]    Windows version: 5.1 (build 2600) - Service Pack 2
6:30:07 PM  [main]    Xampp version: 1.7.7
6:30:07 PM  [main]    Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
6:30:07 PM  [main]    Running as admin - good!
6:30:07 PM  [main]    Working with basedir: "c:\xampp\"
6:30:07 PM  [main]    Initializing moduls
6:30:07 PM  [main]    Starting check-timer
6:31:03 PM  [apache]    Starting apache app...
6:38:42 PM  [main]    Executing "c:\xampp\"
6:39:34 PM  [main]    Deinitializing moduls
6:39:34 PM  [main]    Deinitializing main

6:40:46 PM  [main]    Initializing main
6:40:46 PM  [main]    Windows version: 5.1 (build 2600) - Service Pack 2
6:40:46 PM  [main]    Xampp version: 1.7.7
6:40:46 PM  [main]    Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
6:40:46 PM  [main]    Running as admin - good!
6:40:46 PM  [main]    Working with basedir: "c:\xampp\"
6:40:46 PM  [main]    Initializing moduls
6:40:46 PM  [main]    Enabling autostart for module "apache"
6:40:46 PM  [main]    Enabling autostart for module "mysql"
6:40:46 PM  [main]    Starting check-timer
6:40:46 PM  [apache]    Autostart active: starting...
6:40:46 PM  [apache]    Starting apache app...
6:40:46 PM  [mysql]    Autostart active: starting...
6:40:46 PM  [mysql]    Starting mysql service...
6:43:51 PM  [main]    Deinitializing moduls
6:43:51 PM  [main]    Deinitializing main

6:46:13 PM  [main]    Initializing main
6:46:13 PM  [main]    Windows version: 5.1 (build 2600) - Service Pack 2
6:46:13 PM  [main]    Xampp version: 1.7.7
6:46:13 PM  [main]    Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
6:46:13 PM  [main]    Running as admin - good!
6:46:13 PM  [main]    Working with basedir: "c:\xampp\"
6:46:13 PM  [main]    Initializing moduls
6:46:13 PM  [mysql]    Possible problem detected: Port 3306 in use by "mysqld.exe"!
6:46:13 PM  [main]    Enabling autostart for module "apache"
6:46:13 PM  [main]    Enabling autostart for module "mysql"
6:46:13 PM  [main]    Starting check-timer
6:46:14 PM  [apache]    Autostart active: starting...
6:46:14 PM  [apache]    Starting apache app...
6:46:14 PM  [mysql]    Autostart active: modul is already running - aborted
6:47:44 PM  [mysql]    Stopping mysql service...
6:48:00 PM  [mysql]    Stopping mysql service...
6:48:13 PM  [main]    Deinitializing moduls
6:48:13 PM  [main]    Deinitializing main

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:04
by Sharley
OK, Make sure that both Apache and MySQL are Stopped.

Uninstall the services by clicking on the ticks and answering yes.

All ticks should be grayed out now and nothing running.

Please let me know when you get to this state - I will be here for a while yet so we can work through this using the CP3. :)

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:09
by ScottyBoy
Okay, what now? And thanks again for the help. :)

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:10
by Sharley
Your welcome. :)

Now try and Start Apache and MySQL but do not tick any of the service boxes.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:13
by ScottyBoy
MySQL starts, but Apache does not. Just says "Starting Apache App.." and doesn't do anything.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:16
by Sharley
Next go to the Win-Services button and look for a Apache2.2 entry in the list.

Let me know if you find one.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:20
by ScottyBoy
Tis not there.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:25
by Sharley
Ok, This is strange and may be we should try a different method of installing XAMPP instead of using the installer exe file.

Follow these instructions for using the 7zip or zip version to replace this version as there may be some issue that was caused by the buggy installer.
viewtopic.php?p=179699#p179699

I will still be here for sometime get and we must get you moving forward. :)

If after using the archived method you still have the issue then it is definitely not an XAMPP issue but something blocking Apache on your PC.

Re: Apache Won't Start (Windows XP SP2)

PostPosted: 05. October 2011 03:44
by ScottyBoy
It's not letting me delete some files. I get an access denied error. :/