One Geology WMS Cookbook

You then need to copy the ms4w\Apache\cgi-bin\mapserv.exe file and all the libraries it depends on in the cgi-bin directory to the newly-created directory (or directories). Rather than attempt to list exactly which libraries are necessary it is probably easier simply to copy all the files from the top level of cgi-bin to the newly created ... ................
................