MapServer for Windows (MS4W)
MapServer for Windows (MS4W)
Welcome to MS4W, the quick and easy installer for setting
up MapServer For Windows and its accompanying applications
(e.g., Chameleon, MapLab,etc.). The purpose of this package
is to allow novice to advanced MapServer users to quickly
install a MapServer development environment on their
Windows systems. The reasons for needing to do this are
diverse but, in general, this package supports: developers
who want to get to a stable state quickly, trainers who
need an easily-installed configuration identical across
multiple installs, and novices who need help just getting
all the needed bits and pieces together.
The MS4W package is designed to perform a full installation
of Apache, PHP, MapServer CGI, MapScript (CSharp, Java,
PHP, Python), and to provide the capability to install
additional applications easily and quickly. The simplest
way to do this on Windows is to provide a predetermined
directory structure and force everything into that mold.
The directory structure, while fixed within itself, is
designed to be somewhat portable. While the ms4w_xxx.zip
file needs to be installed at the root of a hard drive,
it doesn't have to be the C:/ drive. Moving the package
to the root of a different drive is simple - just copy
it there. To move it to a subdirectory is more difficult
- you'll need to search for /ms4w in all the files and
replace it with your new path.
The design also accommodates simple upgrades to the core
package and to applications, without affecting the local
configuration or the configuration of other installed
applications.
The following are included in the base package:
- Apache version 2.2.22
- PHP version 5.4.3
- MapServer 6.0.3 CGI and MapScript (CSharp, Java, PHP,
Python)
- GDAL 1.9.1
- mapserver utilities
- gdal/ogr utilities
- proj.4 utilities
- shp2tile utility
- shapelib utilities
- shpdiff utility
- avce00 utilities
- PHP_OGR Extension 1.1.1
- OWTChart 1.2.0
Compiled, packaged, documented, and tested by Gateway Geomatics.
Please help support this great product that is downloaded
over 5,000 times a month by organizations of all sizes -
please contact us directly at info@gatewaygeomatics.com for
custom builds or requests. Thank you in advance for your
generous support!
Library versions used to build this version of MapServer:
agg-2.4
apache-ant-1.7.0
cairo-git-03102011
curl-7.25.0
expat-2.1.0
fcgi-2.4.0
filegdb-1.2
fits-3.14
freetype-2.4.9
fribidi-0.19.1
gd-2.0.35
gdal-1.9.1
geos-3.3.3
gettext-0.13
giflib-4.1.6
hdf5-1.8.5
jbigkit-1.6
jpeg-8d
libgeotiff-1.4.0
libiconv-1.9.1
libintl-0.11.5
libKML-svn-05242012
libpng-1.5.10
libtiff-4.0.1
libxml2-2.7.8.win32
mapserver-6.0.3
ming-0.2a
mrsid-8.5
mysql-5.1.34-win32
netcdf-3.6.1
openssl-1.0.1c
oracle-11.2.0.3.0
pcre-svn-05252012
php-5.4.3
poppler-0.16.4
postgresql-9.1.3
proj-4.8.0
Python-2.6.2
sqlite-3.3.8
swig-1.3.39
szip-2.1
xerces-c-3.1.1
zlib-1.2.7
- C# MapScript: compiled against .NET v3.5
- Java MapScript: compiled against Java 1.6.0_13
- PHP MapScript: built for PHP 5
- Python MapScript: compiled against Python 2.6.2
Perl, TCL, and Ruby MapScript are not in this MS4W release
- ms4w/
- the main directory, assumed to be at the root of a
drive, normally C:
- ms4w/Apache
-
- ms4w/Apache/bin
-
- ms4w/Apache/cgi-bin
- the location of mapserv.exe and its supporting
libraries, and php.ini, php.exe.
- ms4w/Apache/cgi-bin/ignored-libmap
- location of the libmap dll for Oracle
(see the "Plugins" section of this document)
- ms4w/Apache/cgi-bin/mapscript
- location of CSharp,Java, and Python mapscript files
- ms4w/Apache/conf
- the Apache configuration files. These should not be
modified. Place all application-specific and local
httpd.conf files in /ms4w/httpd.d (see the README.txt
in that directory)
- ms4w/Apache/error
- error files for Apache to use
- ms4w/Apache/htdocs
- the Apache Web root directory, you shouldn't install
much in here except perhaps for testing.
- ms4w/Apache/icons
-
- ms4w/Apache/include
- include directory for compiling against Apache
- ms4w/Apache/lib
- lib files for building against Apache
- ms4w/Apache/logs
- log files for Apache are stored here, this should be
archived or cleaned every so often.
- ms4w/Apache/manual
-
- ms4w/Apache/modules
-
- ms4w/Apache/php
-
- ms4w/Apache/php/ext
- location of phpmapscript dll
- ms4w/Apache/proxy
- apache proxy configurations, not used by MS4W
- ms4w/Apache/specialplugins
- location of the plugin dlls for MapServer
(see the "Plugins" section of this document)
- ms4w/apps
- put all applications in subdirectories here.
- ms4w/gdaldata
- supporting files for GDAL data formats
- ms4w/gdalplugins
- place dlls here that are required for gdal plugins
e.g. 'oci_OCI.dll'
- ms4w/httpd.d
- put all application-specific and local httpd.conf files
here (see the README.txt in that directory)
- ms4w/proj
- an installation of PROJ.4
- the epsg file used is /ms4w/proj/nad/epsg
- ms4w/python
- associated python files, including gdal bindings
and a simple test script
- ms4w/tmp
- temporary files go here. This should be cleaned
regularly
- ms4w/tmp/ms_tmp
- temporary files that need to be Web-accessible go
here (i.e. image files created by mapserver). This is
available as /ms_tmp/ via URL. Normally this means
that your MAP files would have an IMAGEPATH of
/ms4w/tmp/ms_tmp/ and a IMAGEURL of /ms_tmp/
- ms4w/tools
- contains useful tools such as the gdal/ogr utilities
and mapserv utilities (note that before running these
you must execute the /ms4w/setenv.bat script in
your command window)
If you already have MS4W installed please do the following:
- open a DOS command window and execute the file
'/ms4w/apache-uninstall.bat' at the commandline. This
file will stop and uninstall your Apache service. You
should see the following message flash in the command
window:
The "Apache MS4W Web Server" service is stopping.
The "Apache MS4W Web Server" service has stopped.
Removing the "Apache MS4W Web Server" service
The "Apache MS4W Web Server" service has been removed
successfully.
- your old apache service has now been removed
- make sure no files or other services point the your ms4w
folder. If your browser is currently open and you are a
viewing an ms4w page you will not be able to rename the
ms4w folder. Therefore you must close all ms4w documents,
all ms4w browser windows...make sure no running files
point to the ms4w folder.
- rename the old ms4w folder to something like 'ms4w-old'
- extract the ms4w_xx.zip file to the root of a
drive on your machine
- if successful, you should have a new directory named 'ms4w'
at the root of the drive you chose (e.g. C:/ms4w or D:/ms4w ).
- follow the rest of the install instructions in
/ms4w/README_INSTALL.txt to start apache...
In order to run the apache-install.bat file, you must do
the following:
- In Windows Explorer, goto the location of your cmd.exe
file (C:/Windows/System32)
- Right-click the cmd.exe executable and choose Run as
Administrator
- Navigate to your ms4w folder in the command prompt window
and run apache-install.bat
Steps to Enable Oracle 10g or 11g Support in MS4W
Oracle Spatial support in MapServer is handled by two methods:
1) natively in MapServer, or 2) through the GDAL library.
Make sure you have Oracle 10g or 11g client software
installed on your machine (the same machine that you
are running MS4W on).
For direct access to Oracle Spatial, replace the existing
libmap.dll in /ms4w/Apache/cgi-bin/ with the one in the
/ms4w/Apache/cgi-bin/ignored-libmap/oracle11g/
folder.
If this is successful, executing the following at the
commandline (after setting /ms4w/setenv.bat)
"mapserv -v" should return a string that contains
"INPUT=ORACLESPATIAL".
For access to Oracle Spatial through the GDAL library,
move the ogr_OCI.dll plugin file up from
/ms4w/gdalplugins/ignored/oracle-11g/ into
/ms4w/gdalplugins/
If this is successful, executing the following at the
commandline (after setting /ms4w/setenv.bat)
"ogrinfo --formats" should list the OCI driver.
Restart Apache to be safe.
For mapfile configuration see
http://www.mapserver.org/input/vector/oracle.html (note
that the LAYER syntax differs depending if you use native
access or through GDAL)
Steps to Enable SDE 9.1, 9.2, 9.3 Support in MS4W
Move the ogr_SDE.dll and gdal_SDE.dll plugin files up from
/ms4w/gdalplugins/ignored/sde-x/ into /ms4w/gdalplugins/
Execute the following at the commandline
(after setting /ms4w/setenv.bat):
"ogrinfo --formats"
(should list the SDE driver)
"gdalinfo --formats"
(should list the SDE driver)
Note that you might need to add the ArcGIS location (such as
C:/Program Files/ArcGIS/Bin) to your system PATH environment
variable. You might need to reboot for changes to take effect.
Create a MapServer LAYER for your SDE connection:
Raster Layers
LAYER
TYPE RASTER
DATA "SDE:hostname,port,database,username,
password,fully.specified.tablename,RASTER"
...
END
Vector Layers
Modify your SDE layer in your mapfile to use the
CONNECTIONTYPE PLUGIN parameter and point to the appropriate plugin
using the PLUGIN parameter:
Example#1: SDE 9.1 layer
LAYER
...
CONNECTIONTYPE PLUGIN
CONNECTION "hostname,port:xxx,database,username,password"
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_91.dll"
DATA "layername,geometrycolumn,SDE.DEFAULT"
...
END # layer
Example#2: SDE 9.2 layer
LAYER
...
CONNECTIONTYPE PLUGIN
CONNECTION "hostname,port:xxx,database,username,password"
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll"
DATA "layername,geometrycolumn,SDE.DEFAULT"
...
END # layer
See the ArcSDE section of MapServer's Vector Data Access doc
for help with the CONNECTION and DATA parameters:
http://www.mapserver.org/input/vector/arcsde.html
A read-only, native MapServer driver that connects to Microsoft SQL
Server 2008's spatial capabilities is available in MS4W as of version
2.3.0.
Steps to Enable SQL Server 2008 Support in MS4W's MapServer
The plugin exists in
/ms4w/Apache/specialplugins/msplugin_mssql2008.dll
Modify your SQL Server 2008 layer in your mapfile to use the
CONNECTIONTYPE PLUGIN parameter and point to the appropriate
plugin using the PLUGIN parameter. Use the CONNECTION
parameter to specify the required connection parameters to access
SQL Server, and use the DATA parameter to specify the table that
holds the spatial information:
LAYER
...
CONNECTIONTYPE PLUGIN
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll"
CONNECTION "server=mysqlserver2008.com;uid=dbusername;
pwd=dbpassword;database=Roads Database;
Integrated Security=false"
DATA "the_geom from roads"
TYPE LINE
STATUS ON
CLASS
...
END
END
Test your layer, possibly by using the shp2img commandline utility
with the '-all_debug 5' switch
The associated RFC document with the original notes on this support
is RFC 38
MS4W >= 1.5.0 includes pre-built support files for csharp, java,
and python mapscript. In order to make use of these,
however, they must be installed and configured in the
appropriate locations on your system.
- Files are located in /ms4w/Apache/cgi-bin/mapscript/java
Obtaining Python
Obviously, in order to run Python mapscript, you need to have
a python installed. The Python mapscript support files
included in this distribution are built for Python 2.6.x;
they will not work with earlier or later Python versions.
Windows Python binaries can be obtained free of charge from
ActiveState or the Python site.
See the respective sites for Python installation information.
Installing the Python Mapscript Support Files
Quick and dirty (for use with ms4w only)
Unpack /ms4w/Apache/cgi-bin/mapscript/python/mapscript*win32.zip
in a safe location
In the directory structure that results from the above
step, navigate to
\Python-2.6.2\Lib\site-packages
- You should find three files there:
- _mapscript.pyd
- mapscript.py
- mapscript-<version>-py2.6.egg-info
Copy the three files into the /ms4w/Apache/cgi-bin
directory.
Place any python cgi scripts that you want to run under
ms4w in the /ms4w/Apache/cgi-bin directory, and add
a "shebang" line at the top of each script. See the
section on Configuring Apache to run Python scripts
below for shebang-line details.
More robust (for system-wide access)
Unpack /ms4w/Apache/cgi-bin/mapscript/python/mapscript*win32.zip
in a safe location
In the directory structure that results from the above
step, navigate to \Python-2.6.2\Lib\site-packages
- You should find three files there:
- _mapscript.pyd
- mapscript.py
- mapscript.pyc
Copy the three files into the site-packages directory of
your Python 2.6.x installation
(eg., C:\Python26\Lib\site-packages)
Add <drive_letter>:\ms4w\Apache\cgi-bin to your
system's PYTHONPATH environment variable.
Configuring Apache to Run Python Scripts
You have a couple of options here:
via shebang lines
This may be the preferred approach if you have multiple
Python installations on your machine.
Add a "shebang line" to the top of each python cgi script
in /ms4w/apache/cgi-bin. This line must be the first
line in the script, and it must begin with #! followed by
the path to your systems python executable. For example:
#!c:/python26/python.exe -u
The -u option shown above causes the script to use
unbuffered output, which is generally what you need in
web-serving contexts.
via Apache directives
This approach obviates the need to edit every python script
in your cgi-bin directory; however, it may be problematic
if you have multiple Python installations.
Add the following line to the end of
ms4w/Apache/conf/httpd.conf:
ScriptInterpreterSource Registry
You may also want to add these:
SetEnv PYTHONUNBUFFERED 1
PassEnv PYTHONPATH
The first of the above lines causes your python scripts to
use unbuffered output (which you probably want), while the
second passes the value of your system's PYTHONPATH
environment variable through to Apache's environment
(if set).
Testing the Configuration
Follow these steps to test your Python MapScript
installation:
Move the file /ms4w/python/test-cgi-mapscript.py
into the /ms4w/Apache/cgi-bin/ folder.
Open the file in a text editor.
Edit the first line of that script to point to your
proper Python path.
In your web browser goto
http://127.0.0.1/cgi-bin/test-cgi-mapscript.py
The script tests that the Python CGI is working, and
that the mapscript module can be successfully imported.
If successful you will see an HTML page listing several
environment settings on your machine, as well a list of
the Python MapScript module attributes at the bottom
of the page.
Python Troubleshooting:
- If you get an Internal Server Error check the Apache logs
for info.
- Make sure your script points to a valid Python installation
path.
- Make sure you are using a recent Python version
(containing the cgitb module).
In order to use FastCGI you must do the following:
Be sure you have installed the Visual C++ 2010 SP1 Redistributable Package
from: http://www.microsoft.com/download/en/details.aspx?id=8328
Open /ms4w/Apache/conf/httpd.conf in a text editor
Uncomment line#129, such as:
LoadModule fcgid_module modules/mod_fcgid.so
At the bottom of the file you will see a commented
"<IfModule fcgid_module>" section. If you want to use
FastCGI directives (listed on the mod_fcgid
page) you can uncomment the section and add your
directives, such as:
<IfModule fcgid_module>
FcgidMinProcessesPerClass 0
FcgidIdleScanInterval 1
FcgidProcessLifeTime 10
</IfModule>
If you are connecting to an Oracle database using FastCGI, you
must also add your Oracle Bin directory (where the 'oci.dll'
file exists) to the PATH variable above, such as:
<IfModule fcgid_module>
...
FcgidInitialEnv PATH "c:/oracle/product/10.2.0/client/BIN"
...
</IfModule>
Save the file and restart apache (execute /ms4w/apache-restart.bat)
Change your CGI application to point to "/fcgi-bin/mapserv.exe"
instead of the usual "/cgi-bin/mapserv.exe"
Add the following parameter to your layer for which you
want this FastCGI connection:
PROCESSING "CLOSE_CONNECTION=DEFER"
Try the application. If successful you should see the
"mapserv.exe" process in the Windows Task Manager remain open
while the user interacts with your application.
Notes:
- in testing this was successful with PostgreSQL 9.0.4 / PostGIS 1.5.2,
and with Oracle 10.2.0.1.0.
- general MapServer and FastCGI notes can be found in the
FastCGI Howto.
As of MapServer 5.4.1, MapServer can connect through HTTPS connections
to WMS/WFS servers. MS4W 3.0 includes the necessary configuration
as follows:
Certificate authority bundle is included in
/ms4w/Apache/conf/ca-bundle/cacert.pem
Source: http://curl.haxx.se/ca/cacert.pem
Apache's httpf.conf points to the ca-bundle:
SetEnv CURL_CA_BUNDLE "/ms4w/Apache/conf/ca-bundle/cacert.pem"
MS4W's setenv.bat points to the ca-bundle:
set CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem
For more information on SSL certificates,
see: http://curl.haxx.se/docs/sslcerts.html
To setup MapServer as a client to access a remote WMS/WFS server
through HTTPS see: http://trac.osgeo.org/mapserver/ticket/3070
Note:
Python 2.6 is required for the Python GDAL module in
MS4W, and you must have C:/python26 in your PATH to use
the utilities.
The Python GDAL module and its utilities are installed in
/ms4w/python/gdal/. To run the utilities:
- Open a Command Prompt window
- cd ms4w
- setenv.bat
- excute the python utility, such as:
gdal_merge.py
gdal_merge.py notes:
- -n (nodata_value) switch requires the NumPy
module http://numpy.scipy.org/
- raster_copy_with_nodata() also requires the NumPy module
Warning: dl(): Unable to load dynamic library
'/ms4w/Apache/php/extensions/php_mapscript.dll'
Verify that the dll in question exists in the
specified location (/ms4w/Apache/php/extensions/). If
this dll is not in that location, you might have to
modify the application to point to a different version of
the dll (e.g. you might have php_mapscript.dll in
the extensions directory, and your application might be
configured for php_mapscript_48.dll which is not in the
extensions directory).
This php_mapscript dll requires several other dlls, and
the problem may be that one is missing on your system.
In order to hopefully get more information on what dll
is missing, go to a command prompt, and do the following:
cd ms4w\Apache\cgi-bin
php C:/ms4w/Apache/htdocs/phpinfo_mapscript.php
A windows error window should open with a message like:
The dynamic link library ***** could not be found in
the specified path...
Locate this missing dll and copy it either to
/ms4w/Apache/cgi-bin/ or your system32 folder.
If you are still unsure what dll is causing this unable
to load dynamic library error, a useful utility to find
what associated dlls are missing on your system is
Dependency Walker. Download the utility, execute the
exe, and open your php_mapscript dll.
The dynamic link library MSVCP71.dll could not be found
in the specified path...
This is a microsoft runtime library that is apparently not
on all Windows systems by default. Download the dll
(possibly from here) and copy it to your System32
directory.
Clicking on apache-install.bat flashes a DOS window and
does not install the service
To see the exact error message, open a Command window, and
execute the 'apache-install.bat' file from a DOS prompt.
cd ms4w
apache-install.bat
Only one usage of each socket address (protocol/network
address/port) is normally permitted. : make_sock: could not
bind to address 0.0.0.0:80 no listening sockets available,
shutting down
Apache with MS4W is configured to use port 80. Your system
might be already using this port (IIS could cause this for
example). If you want to change the port that Apache uses
modify the following file:
/ms4w/Apache/conf/httpd.conf
line 120: Listen 80
TCPView is an example of shareware that lets you see
how the ports on your machine are being used.
The procedure entry point xxxx could not be located in the
dynamic link library xxx.dll
Make sure that MapServer (or the utility that you are trying
to use) is actually using the 'xxx.dll' file that is part
of the MS4W package. You could be experiencing 'dll hell'
(http://en.wikipedia.org/wiki/DLL_hell) where MS4W is
actually finding an older dll on your system. Try renaming
the other dll(s) of the same name, keeping the one in MS4W
as is, and retrying your application/command.
Other Problems...
- Search the mailing list archives to see if someone has
encountered/solved your same issue.
- If your issue has not been brought up on the mailing list
and dealt with, submit a question to the
MS4W mailing list. Include the steps to reproduce
your problem, and state your exact error message. Also
specify which version of MS4W you are using.
Do the following steps in a text editor:
- Open /ms4w/Apache/conf/httpd.conf and search for "/ms4w/" and
replace with your new path from your drive root (such as
"/Temp/ms4w/")
- Open /ms4w/Apache/cgi-bin/php.ini and search for "/ms4w/"
and replace with your new path from your drive root (such as
"/Temp/ms4w/")
- Open all files in /ms4w/httpd.d and search for "/ms4w/"
and replace with your new path from your drive root (such as
"/Temp/ms4w/")
- Open /ms4w/setenv.bat and search for "/ms4w/" and replace
with your new path from your drive root (such as "/Temp/ms4w/")
- Configure your add-on packages. Using Chameleon as an example:
Open /ms4w/apps/chameleon/config/chameleon.xml and search for
"/ms4w/" and replace with your new path from your drive root
(such as "/Temp/ms4w/")
Recommendation: avoid installing MS4W in a path that contains spaces
The following instructions will help non-MS4W users who want
to only use the MapServer binaries included in MS4W:
- Download and extract the MS4W base package locally from MapTools.
- Do not install the Apache service (apache-install.bat)
- Copy the .dll files from the /ms4w/apache/cgi-bin/ directory
into your desired cgi-bin directory:
- For PHP/Mapscript, goto /ms4w/Apache/php/ext/ and copy
the php_mapscript.dll file into your own PHP
extensions directory. CSharp, Java, and Python mapscript
files can be found in /ms4w/Apache/cgi-bin/mapscript/
- For the commandline utilities that come with MS4W (mapserv,
gdal, etc.) copy all of the .exe files from /ms4w/tools/
to a desired location, but be aware that these utilities
use dlls that were installed in the cgi-bin directory.
Therefore you must add your cgi-bin directory into your
Windows PATH environment variable before running the
utilities.
- Microsoft IIS users should refer to the IIS Howto for MapServer.
Custom EPSG projections can be added to the bottom of your epsg file
at /ms4w/proj/nad/epsg/.
As of MS4W 3.0-beta11, previously included custom projections for
Canada have been removed. Here is some of the history:
- Gateway Geomatics officially applied to have the custom Canadian
projection EPSG:42304 (common in Ontario and in the Atlas of
Canada) included in the EPSG geodetic registry in 2009
- the projection was accepted as EPSG:3978 in the EPSG geodetic
registry on 2009-06-02
- this new EPSG code is included in PROJ4 4.7.0 release (2009-09)
For reference, here are the old custom Canadian EPSG codes:
##
## Custom projection codes for Canada
##
## WGS84 / LCC Canada
<42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49
+lat_2=77 +x_0=0 +y_0=-8000000.0 +datum=WGS84
+units=m no_defs <>
## NAD83 / BC Albers
<42102> +proj=aea +ellps=GRS80 +lat_0=45 +lon_0=-126.0
+lat_1=50.0
+lat_2=58.5 +x_0=1000000.0 +y_0=0 +datum=NAD83
+units=m no_defs <>
#
## NAD83 LCC for Canada
<42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95
+lat_1=49 +lat_2=77
+datum=NAD83 +units=m no_defs <>
##
The following section explains how to add password
authentication to your MS4W application. However there are
many other possible settings in Apache for this, so please
consult the Apache HTTP Server documentation.
Here are the minimal steps for password protection:
Modify your application's httpd_xxx.conf file, so that
"AllowOverride None" is replaced with "AllowOverride
AuthConfig", such as:
Alias /gmap/ "/ms4w/apps/gmap/htdocs/"
<Directory "/ms4w/apps/gmap/htdocs/">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
Create a password file.
open a DOS command window, and go to Apache's bin
directory
enter the following (replace "jeff" with the username
you want to create, press ENTER and you will be
prompted for a password to create):
C:/ms4w/Apache/bin> htpasswd -c htpasswd.txt jeff
Create the htaccess file.
create a file in your application directory
(/ms4w/apps/gmap/htdocs/ in this example) named
'.htaccess'
the file should contain (you can modify it however you
wish though):
AuthType Basic
AuthUserFile C:/ms4w/Apache/bin/htpasswd.txt
AuthName "Password Required"
require valid-user
Restart Apache
- run /ms4w/apache-restart.bat
Access your application in a web browser.
Troubleshooting:
some Windows versions may have difficulty with the
'.htaccess' filename, so you might try naming it something
else, but you would have to modify Apache's httpd.conf
file (/ms4w/Apache/conf/httpd.conf) and add your filename,
such as:
AccessFileName .htaccess yourfilename
'htaccess.acl' is recommended, such as:
AccessFileName .htaccess htaccess.acl
a good reference is
http://sniptools.com/tutorials/windows-apache-and-htaccess-authentication
The following applications come with a pre-configured
install package for MS4W. Go to
http://www.maptools.org/ms4w/index.phtml?page=downloads.html
to find the desired package, and extract the packages to the
MS4W root (e.g. if you installed in C:then extract at C:,
and if you installed the base in C:Program Files then
extract the packages to C:Program Files).
- ArcIMS Emulator
- Chameleon
- dBox MapServer
- FIST - Flexible Internet Spatial Template
- GeoMOOSE
- ka-Map
- MapBender
- MapServer Itasca Demo Application
- OGC Workshop
- OpenLayers
- GMap Sample PHP/MapScript Application
- phpPgAdmin
- p.mapper
MS4W contains several component packages that are provided under
their own licensing terms.
Copyright (c) 1996-2012 Regents of the University of Minnesota
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies of this Software or works derived from
this Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Refer to the GDAL license found at /ms4w/gdaldata/LICENSE.TXT
Portions of this computer program are copyright (c) 1995-2012
LizardTech, Inc.
All rights reserved. MrSID is protected by U.S. Patent No. 5,710,835.
Foreign Patents Pending.
Portions of this software are copyright © 2012 The FreeType Project
(www.freetype.org). All rights reserved.
Refer to the Apache license found at /ms4w/Apache/LICENSE-APACHE.txt
Refer to the PHP license found at /ms4w/Apache/php/license.txt
|
|
![](../images/main/pixel_navy.gif) |
Docs |
![](../images/main/pixel_navy.gif) |
|
![](../images/main/pixel_navy.gif) |
|