Click to See Complete Forum and Search --> : [Resolved] Shutdown batch for php / mysql


leatherback
05-18-2003, 07:28 AM
Hi All,

Just did a full clean-up of my system (format c:\) and now I am seeting up my server again. I also downloaded the new PhP/Mysql?Apache package from firepages.com.au. (PhPdev4.3)

With the old package a batch file was in cluded for shutting down the apache server and mysql. The new package doesn't have this, and it has included a program "apache monitor".

How do I go about closing all the programs now after I finish working on the server (I only run my server for local programming)
my OS: Win 2000 prof.
Maybe somebody has a batch file to do this?

Thanks,

J.

weekender
05-18-2003, 01:42 PM
apache and mysql run as an nt service, so you can view them by going start, control panel, administrative, services. I can't tell you about apache, as i run iis, but to create a batch to stop mysql create a file called stopmysql.bat in notepad, and put the following code into it...

net stop mysql

i'm guessing apache is probably net stop apache (not sure what the service name is, but you can check by going in to services.

to start the service, use net start mysql

leatherback
05-18-2003, 02:36 PM
Hi Weekender,

Nope.. Sorry. It does not run as a service (Don't ask me how it DOES run however!) Your solution didn't work for me...

Any other suggestions?

J.

weekender
05-18-2003, 04:36 PM
hi leatherback

not sure if you know, but you've marked the post as resolved - i didn't think it was - and you won't get replies if people think it is resolved.

sorry i couldn't be of more help with apache.

ads

leatherback
05-18-2003, 04:41 PM
Hi Weekender,

Yeah, I know it is set as "resolved".

I am not waiting for more replies: I changed my setup, got the mysql now installed as services on win2000, got apache running independent, but you can start that easily with a command / close with a command. I can now from theservices section start/shutdown the rest. Later this week I will write a batch, found some info on mysql.com and microsoft on starting/ending services. Suppose that has to do.

Thanks for watching out for my interests though!

Have a nice evening (?)

;-)

J.