MS4W is a great package for Windows servers containing most importantly Apache, PHP and Mapserver together with several other Mapping tools:
- Apache HTTP Server version 2.2.4
- PHP version 5.2.4
- MapServer CGI 5.0
- MapScript 5.0 (CSharp, Java, PHP, Python)
- Includes support for Oracle 10g, and SDE data (if you have associated client/dlls)
- MrSID support built-in
- GDAL/OGR 1.4.2 and Utilities
- MapServer Utilities
- PROJ Utilities
- Shapelib Utilities
- Shp2tile Utility
- Shpdiff Utility
- AVCE00 Utilities
- OGR/PHP Extension 1.0.0
- OWTChart 1.2.0
The installation of ms4w is so very simple and the package comes with a great read me which explains the whole thing. Here I will go through some of the steps which where relevant to me.
- Download the package from the Maptools website
- Unpack the ms4w zip folder to the root of the server. I have basicaly used C:\ but you can really put it anywhere.
- Now go to the folder ms4w folder and double-click on \ms4w\apache-install.bat to turn on the Apache server. This can also be done by calling the command window (Start>Run>’cmd’), call the right folder (for me that would be: ‘cd c:\ms4w’) and run the server. Input in the commandline: ‘apache-install.bat’. If the Apache server then runs it will output the following in the commandline.
The Apache MS4W Web Server service is starting.
The Apache MS4W Web Server service was started successfully.
- You can now test if the APache server is running properly by opening your browser of choise and pointing it towards
http://localhost/
or
http://127.0.0.1/
- If this does not bring up the main ms4w page then you might want to go to /ms4w/Apache/conf/httpd.conf and change line 120 from
line 120: Listen 80
to
line 120:Listen 8080
This will make the server run from the 8080 port instead of the standard 80 port.
To check if this works now you should now point the browser to:
http://localhost:8080/
or
http://127.0.0.1:8080/
- If the MS4W server is working now the the page will show on one of these sites.