Following on from the post about starting and stopping MySQL using .bat files I decided to add commands to these files that also controlled Apache in the same way. This turned out to be a lot easier than trying to start and stop MySQL as the command line commands for httpd executable worked very well in .bat files.
So, to start Apache use the following line.
"C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd" -k start
And to stop the server use the following line.
"C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd" -k stop
Comments
i am unable to start apache
Have you tried ointment?