apache not starting

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

apache not starting

Postby ron102 » 07. April 2011 11:55

Just put xampp-win32-1.7.4-VC6-installer in and it wont start apache, mysql starts ok, windowsxp sp3
ron102
 
Posts: 37
Joined: 03. January 2007 13:29

Re: apache not starting

Postby Sharley » 07. April 2011 20:35

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: apache not starting

Postby ron102 » 08. April 2011 07:28

soory i posted it in the wrong lanugege

i went there it was empty??
ron102
 
Posts: 37
Joined: 03. January 2007 13:29

Re: apache not starting

Postby Sharley » 08. April 2011 08:15

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: apache not starting

Postby Heptagon » 10. April 2011 07:42

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."
Heptagon
 
Posts: 2
Joined: 10. April 2011 05:27

Re: apache not starting

Postby Sharley » 10. April 2011 07:57

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: apache not starting

Postby Heptagon » 10. April 2011 23:28

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.
Heptagon
 
Posts: 2
Joined: 10. April 2011 05:27

Re: apache not starting

Postby Sharley » 10. April 2011 23:32

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 35 guests