Hi, I know Apache and MySQL can be started with apache_start.bat and mysql_start.bat... however the readme_en.txt says that to stop the apache just close the cmd window and to stop mysql run mysql_stop.bat
However using apache_stop.bat and closing the mysql cmd works too. So I would like to know what is the apache_stop.bat for and will it have any (bad) effects on the installation if I close it NOT according to the readme
The bat files issue a command to apache either to start or to stop - drag those files in your text editor to see those commands and how the bat files are coded.
Closing the start bat file console window has the effect of breaking the command that keeps the console window open and Apache running.
So doing either will not harm or give you cause for concern as thats how the bat files were designed to operate.
The above applies to any of those control bat files in xampp.
You also have the choice of using the XAMPP Control Panel - xampp-control.exe to do all those chores plus controlling the component's ability to run as a service so they will start every time you reboot your PC.
If for some reason one or more of XAMPP's components won't stop then you can do that chore in the Windows Task Manager accessible from the Task Bar context menu by ending the process and again any of these methods will not harm your installation.
If you have trouble starting Apache for example, then running the apache_start.bat file will usually have a detailed error message giving the reason - good for troubleshooting a bad start issue.
Hi how do you control a component's ability to run as a service? Under xampp control panel Apache and MySQL are running with the Svc box on the left checked. If I uncheck Apache's svc box, it says "Click OK to uninstall the Apache Service". However after I uncheck MySQL's svc box, it automatically rechecks itself after like 1/2 second.
Also in the Service Settings Window the "Run XAMPP Control Panel as a Service" is checked, with Apache and MySQL below checked too.
Izzy wrote:Good forum etiquette is to round off a helpful topic with how you fixed it so others reading this topic with similar issues know just how you did fix it. Thanks.
AGREED!! There's nothing worse than reading thread after thread when trying to fix a problem and no one ever mentioning how they fixed it. Even if you solve it or get a little further on the problem, post it! Keep updating your thread if you keep making progress, because the better details in how you're working through fixing it, the better the chances someone else will benefit from that thread and not be banging their head on the desk because it was one more thread they read and didn't help.
For great video and written tutorials and guides on creating your own web server and installing things such as forums, blogs, etc., visit http://myownhomeserver.com