Page 1 of 1

apache not starting

PostPosted: 07. April 2011 11:55
by ron102
Just put xampp-win32-1.7.4-VC6-installer in and it wont start apache, mysql starts ok, windowsxp sp3

Re: apache not starting

PostPosted: 07. April 2011 20:35
by Sharley
Read the \xampp\apache\logs\error.log file for clues.

BTW, please do not cross post in these forums as you will only be answered in one of your posts and it is not good forum etiquette.
Thanks.

Re: apache not starting

PostPosted: 08. April 2011 07:28
by ron102
soory i posted it in the wrong lanugege

i went there it was empty??

Re: apache not starting

PostPosted: 08. April 2011 08:15
by Sharley
You had a previous version of XAMPP installed and the Apache from it may have been installed as a Windows Service and so would be running every time you try and start the new version of Apache.

Open the Task Manager and look for httpd.exe of which there may be 2 processes.

Highlight one at a time and click on the End Process button to kill them.

After they have gone from the processes then try and start Apache again in your 1.7.4 version.

In your XAMPP Control Panel make sure there is no tick in the Svc check box before trying to Start Apache.

Let me know if that sorts this out - if not then you may have to uninstall the installer version then try downloading and extracting the zip version then run the setup_xampp.bat file but more on that if you get back to me.

Re: apache not starting

PostPosted: 10. April 2011 07:42
by Heptagon
I seem to have a similar problem. I had installed XAMPP a while ago, v. 1.7.3, and it worked fine, used it for over a year with no problems. Haven't used it for about a month, and now Apache does not appear to start; though, it says it has started. No green "Running" icon, "Stop" button, nor active "Admin" button (as shown below). Can start MySQL, as also shown below.

Image

In Process Explorer, httpd.exe is not listed at all; though, mysqld.exe is listed, as well as xampp-control.exe.

There is nothing listed for this date in the \xampp\apache\logs\error.log file.

In Firefox, when I try to start a webpage or Joomla! on localhost, I get an error dialog box: "Unable to connect. Firefox can't establish a connection to the server at localhost."

Re: apache not starting

PostPosted: 10. April 2011 07:57
by Sharley
Have you tried a reboot then try and start Apache again?

Try stopping Apache by running the apache_stop.bat file in the xampp folder.

Next try starting Apache using the apache_start.bat file in the xampp folder and see if there is an error message returned or if Apache starts and if it does then check the XAMPP Control Panel and see if it shows the green running indication.

Have you Zone Alarm or similar installed and monitoring which may be blocking the httpd.exe - you can temporarily disable these monitors to see if Apache will start, then if disabling makes no difference then enable them again?

In 1.7.3 you can again run the setup_xampp.bat file to check your original installation settings and adjust if required - the Setup button in the XAMPP Control Panel will run the bat file.

There is something on your system that is preventing Apache (httpd.exe) from starting and not recording an entry in the error.log file but check that log file again and paste the relevant parts immediately after you try and start Apache here so I can take a look at what is being entered.

Check the Windows Event Viewer>Applications immediately after trying to start Apache for any entries that may give a clue.

Good luck.

Re: apache not starting

PostPosted: 10. April 2011 23:28
by Heptagon
Sharley, Thank you for your help.

After trying your suggestions, unfortunately with no success, and no errors being logged, I deleted all the old errors from the error.log file. Retrying starting Apache from the Control Panel failed again, but now an error was logged. It related to a line I had added to the \xampp\apache\conf\httpd.conf file for a program path that no longer existed. Deleting that line in the conf file appears to have solved the problem. All is working fine again.

When I run Process Explorer, I do have two httpd.exe files showing, one as a "child" of the other, with different PIDs. As I said, though, it does seem to be working fine now.

Re: apache not starting

PostPosted: 10. April 2011 23:32
by Sharley
Heptagon wrote:When I run Process Explorer, I do have two httpd.exe files showing, one as a "child" of the other, with different PIDs.
That is quite normal and I am pleased you found the problem.

Good luck.