Hello, i have some problems reloading apache configuration on an windows machine.
The restart command doesn’t work, it did not reload the config.
Actually i use a bat file within a cron that kill’s the apache’s processes and the start the process. The operation take about 30 - 40 sec depending how many connections are served in that moment by apache.
It’s there an apachectl similar command on windows ?
Yes, I believe there is an apachectl but Apache installs with an Apache monitor which sits in the tray (lower right) and is used to control Apache. If you’re using a bat file, no telling what you’ve done to it. Normally, when there is a problem starting a server which had been running, it’s caused by a change in the httpd.conf (or an ini file) which introduced an error. WHAT happened that caused you to STOP Apache?
after i change the httpd.conf (auto or manual) is obviously that i want to reload the config. The problem is that i want to reload the config fast (just like in linux) without to stop the active requests, and just to reload the config file.
In linux apachectl reload the configuration without to kill the connections.
I don’t have problems using start apache, the problem is that an restart doesent reload the config, so i should do an stop/start and this procedure takes ~ 30 - 40 secs.
On other windows machine an apache -k restart just crush the webserver.
i’m running Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6
EDIT:
the bat file just run the following commands