Page 1 of 1

apache and mysql not shutting down

PostPosted: 24. January 2009 23:21
by DrDaveCF
Xampp appears to be loading automatically since installing in vista. If I open the xampp control panel to shut down the service and get an error that I can't shut either apache or mysql down.

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 00:40
by Izzy
Try clicking on the Stop button then un-tick the Svc boxes next to each component in that order.

If that does not stop the services then use the following bat files.

Apache in order of use.

First in \xampp folder.
apache_stop.bat

Next in \xampp\apache folder.
apache_uninstallservice.bat

Repeat for MySQL using the \xampp\mysql folder for the uninstall service bat file.

Then reboot your PC and before starting any XAMPP components look in the XAMPP Control Panel (XCP) that no boxes are ticked and no green Running indications next to the components.

Now you can Start your components but don't put a tick in any of the Svc boxes as this action will start the services again.

Make sure you are an administrator or a super admin in Vista to do the above procedures..

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 04:06
by DrDaveCF
Didn't work. Apache and MySql still started on startup. I can't remove the check marks.

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 04:19
by Izzy
Paste what you see after running xampp-portcheck.exe in the xampp folder.

Paste what the message is when you run apache_uninstallservice.bat file

You can usually only un-tick the Svc boxes after Apache and MySQL have been Stopped - sometimes it needs a couple of button click attempts to Stop the components and also there is often a slight delay while things are shutdown before the running is turned off.

Stopping by using the bat files usually works regardless and independently of the XCP.

Also, include any other relevant details you feel would be helpful in troubleshooting your issue because currently my crystal ball is in for repair - it actually over heated after so much use in these forums.

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 04:28
by DrDaveCF
When I run apache_stop.bat the screen briefly flashes. When I run uninstall I get a message that access was denied. How do I paste these dos messages here?

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 04:34
by Izzy
DrDaveCF wrote:...How do I pasted these dos messages here?
Click on the small icon top left of the console window and select Edit form the context menu - mark = highlight, back to the text and use it to select the text for copying, then back to the Edit menu, select Copy, then back to the forum text box, right click and select paste.
Job done.


Also paste what you see after running apache_start.bat file and mysql_start.bat file.

To get a console window to stay open...
...go to start>Run.. type cmd >OK
Type cd C:\xampp >Enter - if that is where your xampp folder is.
Then type apache_stop.bat >Enter


There have been many posts lately on this subject and perhaps a forum search might also reveal some other member's fixes.

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 04:57
by DrDaveCF
Problem solved. I turned off UAC and then ran the batch files. That took care of the problem as I then was able to uncheck the services.

Re: apache and mysql not shutting down

PostPosted: 25. January 2009 05:25
by Izzy
Thanks for posting back with your solution, it may help others.

I always assume (obviously wrongly) that UAC has been turned off or at least a user knows how to control it, also that a user is an administrator or a super administrator of their Vista machine before attempting to add a web server and become a server administrator/webmaster.

Good luck.