Mapserver Installation and Configuration

This instructions describes how to set up and configure the MapServer under Windows Server 2008 64bit.

You may also have a look on the official documentation http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html

For first prototyping we used a virtual maschine in order to assess performance requirments for later operational mode.

Operating System:

Windows Server 2008 R2 Enterprise - 64Bit

-> MsgHritInterface for more details

Preconditions

You need administrative rights on the machine.

Download

http://www.maptools.org/dl/ms4w/ms4w_3.0_beta11.zip

Installation

  • Unzip the "ms4w_*.zip" to c:/ms4w (it is important that the folder is located under the root)
  • Install the MapServer (which is actually a apache) by executing the "c:/ms4w/install-apache.bat" in the CMD. In order to install the apache webservice as a windows service you have to execute the bat as a system administrator (rightclick on the CMD entry in the program bar -> execute as "system administrator")
    cmd_as_admin.jpg
    install_mapserver.jpg
  • The MapServer should now be up and running and also be visible in the windows service monitor (can also be (re)started and shutdown)
    ms4w_running_as_service.jpg

Configuration

The configuration has to be done using the Mapfile. We suggest to run every interface for a certain product as one "app" in the mapserver enviroment.

For a elaborated explanation we refer here to the official documentation .

The mapfile configuration we are actually using: msg_mapfile.zip

Problems

[error] [client 127.0.0.1] (OS 14001)Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details können auch mit dem Befehlszeilentool sxstrace.exe angezeigt werden.  : couldn't create child process: 734001: php-cgi.exe
[error] [client 127.0.0.1] (OS 14001)Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist. Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Details können auch mit dem Befehlszeilentool sxstrace.exe angezeigt werden.  : couldn't spawn child process: C:/ms4w/Apache/cgi-bin/php-cgi.exe

This error occurs, if visual c++ runtime components are missed on your system (typically the case after a new system set up, because libraries are noct redistrubuted by default with windows server versions).
You can download it from MS: http://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en

-- JohannesTrame - 2010-09-23
Topic revision: r9 - 24 Sep 2010, JohannesTrame
Legal Notice | Privacy Statement


This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback