Starting Apache service problem [SOLVED]

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

Starting Apache service problem [SOLVED]

Postby dmeek » 09. January 2012 01:52

Hi all,

A newbie to XAMPP posting for the first time. I know that a similar problem was recently posted by someone else, but skype wasn't the problem, and the post was closed so I'm creating a new one. Anyways, I've installed XAMPP and run it, but when I look at the control panel it shows that MySQL is running but APACHE is not. I've run the beta version of the control panel (3.0.2) as someone suggested in the previous post and when I press start I see the following:

7:41:25 PM [apache] Possible problem detected: Port 80 in use by "system"!
7:41:25 PM [mysql] Possible problem detected: Port 3306 in use by "mysqld.exe"!
7:41:26 PM [main] Starting check-timer
7:46:59 PM [apache] Starting apache service...

Anyone have any ideas? Could it be because mysqld.exe is already running for some reason? (I already had mysql installed on this machine...should I deinstall it?)
Thanks,
David
dmeek
 
Posts: 4
Joined: 09. January 2012 01:44
Operating System: windows 7

Re: Starting Apache service problem

Postby Sharley » 09. January 2012 02:07

You would need to uninstall any other MySQL instances and find any my.ini files and delete those also except the one in the \xampp\mysql\bin folder.

System is usually related to IIS or World Wide Publishing and it's associated programs.

You will need to disable these Windows default web servers before you can start Apache.

See if this IIS Forum topic helps:
how to turn off iis 7

These search results may help.

Let me know how you get on. :)


BTW
The latest XCPv3 versions can be found here:
viewtopic.php?f=16&t=48932
Download and extract all the files and folders from the archive file into the xampp installation folder and overwrite when asked then use this latest version instead but close any other control panels you may have open.
This latest version has more features and more detailed reports in the log window.
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: Starting Apache service problem

Postby Enddoc » 09. January 2012 04:08

Here's a new reason -VMware Tray Start-up item.
I think it's using port 443 killing Apache as it tries to start.
I like vmware but I don't need the 'tray' guy always in the start-ups.
User avatar
Enddoc
 
Posts: 2
Joined: 05. December 2008 17:44
Location: Miami, Florida
Operating System: Windows XP sp3

Re: Starting Apache service problem

Postby dmeek » 09. January 2012 04:30

Enddoc, thanks for the tip, any ideas on how to remove VMware in the tray start up? Is that a program?
dmeek
 
Posts: 4
Joined: 09. January 2012 01:44
Operating System: windows 7

Re: Starting Apache service problem

Postby Altrea » 09. January 2012 05:50

Hi dmeek,
dmeek wrote:Enddoc, thanks for the tip, any ideas on how to remove VMware in the tray start up? Is that a program?

Don't try to solve problems you don't have yet.
There is no indication in your status log that your VMware is blocking any needed ports.

Try out Sharleys description, because IIS or some of his helper processes is blocking your port 80.

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: Starting Apache service problem

Postby dmeek » 09. January 2012 06:10

Update: Removed MySQL and IIS, tried XAMPP again, after restarting, Apache does work, but now MySQL doesn't. I guess because I manually removed the MySQL from the control panel? I've tried uninstalling XAMPP from the Apache Friends folder in Start, but at the end it say C://Xampp can't be removed. I've just finished reinstalling XAMPP (not clicking the boxes for add MySQL/Apache as services...not sure if I need to do that?). MySQL still doesn't work, after various attempts, it seems to get stuck on "starting", the Beta error log gives me:


11:54:23 PM [main] Working with basedir: "c:\xampp\"
11:55:12 PM [main] Initializing moduls
11:55:14 PM [apache] Possible problem detected: Port 80 in use by "httpd.exe"!
11:55:14 PM [apache] Possible problem detected: Port 443 in use by "httpd.exe"!
11:55:15 PM [main] Starting check-timer
11:55:40 PM [mysql] Starting mysql service...
11:55:52 PM [mysql] Status change detected: running
11:55:53 PM [mysql] Status change detected: stopped
11:57:19 PM [mysql] Starting mysql service...
11:57:29 PM [mysql] Status change detected: running
11:57:31 PM [mysql] Status change detected: stopped
12:04:53 AM [mysql] Starting mysql service...
12:06:50 AM [mysql] Starting mysql service...
five minutes later i give up....

thought??
dmeek
 
Posts: 4
Joined: 09. January 2012 01:44
Operating System: windows 7

Re: Starting Apache service problem

Postby Altrea » 09. January 2012 06:20

dmeek wrote:I've just finished reinstalling XAMPP (not clicking the boxes for add MySQL/Apache as services...not sure if I need to do that?).

Not clicking the boxes is fine. The boxes register windows services which can make other problems. So, one step after another. If all is running fine and you wish to start the XAMPP applications right after windows startup, you can register them. But first get all running you need to.

Have you started the control-panel-v3 with higher administrator priviledges (rightclick on the control panel icon -> Run as administrator)? If not, please close your control panel and start it again with higher administrator priviledges.

Please take a look into your \xampp\mysql\data\mysql_error.log for more information.

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: Starting Apache service problem

Postby dmeek » 09. January 2012 13:34

whether it's a new day or the great suggestion of starting with administrator privileges, all is working well now for some reason! :) thanks to all for help and suggestions, what a great start to my morning!
dmeek
 
Posts: 4
Joined: 09. January 2012 01:44
Operating System: windows 7

Re: Starting Apache service problem

Postby Sharley » 09. January 2012 13:43

Thanks for the feedback David. 8)

Good luck. :)

I will close this now and mark it solved.

Please feel free to start a new topic if you have any more issues with XAMPP.
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 125 guests