wsconfig CF2021 tries to run apachectl on Windows
Apache on Windows doesn't include the apachectl script, but wsconfig insists on trying to run it, and won't proceed.
On a new server with CF2021+hotfix 3 and Apache 2.4.53 from apachelounge, this is the result of an attempted wsconfig:
03/24 08:51:23 debug Could not find file E:\Apache2\apache.exe
03/24 08:51:23 debug Could not find file E:\Apache2\bin\apache.exe
03/24 08:51:23 info Using Apache binary E:\Apache2\bin\httpd.exe
03/24 08:51:25 info Server version: Apache/2.4.53 (Win64)
03/24 08:51:25 debug Could not find file E:\Apache2\bin\apachectl
03/24 08:51:25 debug Could not find file E:\Apache2\usr\sbin\apache2ctl
03/24 08:51:25 debug Could not find file E:\Apache2\usr\sbin\apachectl
03/24 08:51:25 debug Could not find file E:\Apache2\etc\init.d\httpd
03/24 08:51:25 debug Could not find file E:\Apache2\etc\init.d\apache
03/24 08:51:25 debug Could not find file E:\Apache2\etc\rc.d\init.d\httpd
03/24 08:51:25 debug Could not find file E:\Apache2\etc\rc.d\init.d\apache
03/24 08:51:25 debug Could not find file E:\Apache2\sbin\init.d\apache
03/24 08:51:25 debug Could not find file E:\Apache2\sbin\init.d\httpd
03/24 08:51:25 debug Could not find file E:\Apache2\usr\local\apache\bin\apachec
tl
03/24 08:51:25 debug Could not find file E:\Apache2\usr\apache\bin\apachectl
03/24 08:51:25 debug Could not find file E:\Apache2\etc\init.d\apache2
03/24 08:51:25 error Could not determine Apache control script file
I was able to trick wsconfig into working by creating a file called apachectl in the place it was looking. It still failed to execute it and wrote an exception backtrace to the screen, but kept going and finished the job anyway. The connector is working, so whatever it wanted to do with apachectl must not have been important. (I used -norestart because I thought it might have been trying to use apachectl to restart httpd, but that was apparently not it.)
wsconfig should be updated to skip apachectl invocations when running on Windows.
