Page 1 of 1

Starting Apache service problem [SOLVED]

PostPosted: 09. January 2012 01:52
by dmeek
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

Re: Starting Apache service problem

PostPosted: 09. January 2012 02:07
by Sharley
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.

Re: Starting Apache service problem

PostPosted: 09. January 2012 04:08
by Enddoc
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.

Re: Starting Apache service problem

PostPosted: 09. January 2012 04:30
by dmeek
Enddoc, thanks for the tip, any ideas on how to remove VMware in the tray start up? Is that a program?

Re: Starting Apache service problem

PostPosted: 09. January 2012 05:50
by Altrea
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

Re: Starting Apache service problem

PostPosted: 09. January 2012 06:10
by dmeek
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??

Re: Starting Apache service problem

PostPosted: 09. January 2012 06:20
by Altrea
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

Re: Starting Apache service problem

PostPosted: 09. January 2012 13:34
by dmeek
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!

Re: Starting Apache service problem

PostPosted: 09. January 2012 13:43
by Sharley
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.