I'm trying to write a "control center" for my Apache server, where you log into a part of the site, and are given the options to edit the httpd.conf file, restart, or stop the server. I've gotten the edit part to work, but when I have the PHP for restart or stop call
exec("\"G:\Apache Group\Apache\Apache.exe\" -w -n \"Apache\" -k stop ");
or
exec("\"G:\Apache Group\Apache\Apache.exe\" -w -n \"Apache\" -k restart ");
it doesn't work. btw, I'm running win2kSP2, apache 1.3.20, and php 4.0.5. Apache is installed in "g:\apache group\apache". Any help would be appreciated. Thx.
P.S.: I know the server can't be started up again remotely after it's been stopped - the start script would have to be run on the server, which isn't currently running 🙂