I installed php triad on my ME box and I dont know how to start/stop apache. I use the apache.exe but it wont shut off. What are the commands to eneter into a command prompt or the start->run box.
Thanks,
Frank
I installed php triad on my ME box and I dont know how to start/stop apache. I use the apache.exe but it wont shut off. What are the commands to eneter into a command prompt or the start->run box.
Thanks,
Frank
It might be CTRL+C in the DOS box to shutdown the Apache server.
Try shortcut as provided during install :
"C:\Program Files\Apache Group\Apache\Apache.exe" -w -n Apache -k stop
If you're still having trouble with it, go here and get the free and quite tiny (160K download) BadBlue server which is Win32 only and integrates seamlessly with ME.
http://badblue.com/helpphp.htm
Dave
Frank,
The following are the Win32 command line options for controlling Apache. The the purposes of this example I'll assume Apache is installed in c:\apache.... change the path to reflect your setup (or better yet.... add the apache installation path to your %PATH% so you don't need to type it in everytime).
c:\apache\apache.exe -k start --> start the server
c:\apache\apache.exe -k restart --> do a graceful restart (waits for existing processes to complete)
c:\apache\apache.exe -k shutdown --> kill the server
If you have Apache installed as a service, the commands become:
c:\apache\apache.exe -n apache -k start
c:\apache\apache.exe -n apache -k restart
c:\apache\apache.exe -n apache -k shutdown
where "-n apache" == "-n 'name of apache service'". Apache is the default service name. HTH.
Cheers,
Geoff A. Virgo
Myself, I use batch files to start and stop apache.
c:\windows\startit.bat:
c:\"program files"\mysql\bin\mysqld
c:\"program files"\apache\apache -k start
exit
c:\windows\stopit.bat:
c:\"program files"\mysql\bin\mysqladmin shutdown
c:\"program files"\apache\apache -k shutdown
del c:\windows\temp\sess*
exit
Frank,
Your right. Under standard Win32, running apache.exe will run it in con. To terminate it, you must use ctrl-c. There is no other way around it! (-k start may work, but just apache.exe is the prefered method)
If your running WinNT, you can install Apache as a service and you can net start and stop it as you please, WITHOUT seeing the con.
The con is no big deal, just live with it bro! ;-)
Best of luck!
..... or if you're like me and hate open consoles, install it as a service regardless of your edition of 'Doze. As of 1.3.19, Apache supports "service installations" on Win9x as well (which of course ME is a member of). The drawback is that, due to the lack of native service support in Win9x, the service isn't as stable as WinNT's. God, isn't that scary.... services less stable that WinNT <sic>noted stabliblity</sic>
Proper commands:
apache -i // install the service
apache -u // uninstall the service
apache -n <servicename> -k start // start service
apache -n <servicename> -k restart // gracefully restart service
apache -n <servicename> -k shutdown // kill service
By default, <servicename> is "apache". HTH.
Cheers,
Geoff A. Virgo