The files generated by MapServer will be placed in thedirectory /ms4w/tmp/ms_tmp/. The web server must be able toplace files in this directory. The web server must make thisdirectory available as /ms_tmp (if the web server is onwww.ms.org, the web address to the directory must be:httpd://www.ms.org/ms_tmp/.
Run the following in a command window (with administrator permissions). This enables the handlers section in the /mapserver/web.configfile to override the ones set at the machine level.See -this-configuration-section-cannot-be-used-at-this-path-configuration-lock
Mapserver For Windows (ms4w) Download ⇔ https://byltly.com/2zCGEE
To install the tutorial under MS4W, simply unzip the tutorial.zip archive to C:\ (or whichever drive MS4W is installed) and restart the web server. The tutorial files will be installed under \ms4w\apps\tutorial and an Apache configuration snippet will be installed as \ms4w\httpd.d\httpd_tutorial.conf.
Test to make sure that your MapServer CGI program is working. With your web server running, open this URL on a web browser: -bin/mapserv? (on *nix) or -bin/mapserver.exe? or (on Windows). You should get the following message:
Windows Apache/MS4W users can set the following expression in the Apacheconf file, to limit the possible MAP= paths to the commonC:/ms4w/apps/ directory (where all MS4W mapfiles and applications live),allow encoded urls, allow "." or "_" or "-" in MAP= paths but disallow ".."directory traversing:
Two options are available, a downloadable zip of all the appropriate binaries or an installer. We will use the installer here as it the easiest option for those setting up a OneGeology service for the first time. The installer is available from the Download Packages page. Download the latest setup file, for us this was ms4w-3.2.2-setup.exe, to a temporary location on your server.
Unzip the OneGeology template application to the same drive and directory level as the MS4W location resulting from the MapServer installation e.g. if you installed MS4W on C:\MS4W then point the unzip extract to C:. It should create a number of files inside the ms4w directory. The main part of the two example applications are inside a BGS_Bedrock_and_Superficial_Geology directory (for the shapefile based example) and BGS_Bedrock_Raster_Map directory (for the image file based example) which will be created inside ms4w\apps\cookbookExemplars.
Now you should edit the index.html file in the Apache web root \ms4w\Apache\htdocs\ and add a link to your new service. Note, the link you use is the value of the Alias (line one of the httpd conf file).
760c119bf3