This page describes the step-by-step procedure to install Cartoweb3 on Windows, using WAMP, Mapscript and Cartoweb.
The following configuration was tested:
- Windows 2000
- WAMP 1.4.4 (Apache 1.3.33 + PHP 5.0.4)
- Mapserver 4.5
- Cartoweb 3.0.0 and Cartoweb3 CVS-version
Cartoweb requires php5. MS4W only supports php4.3 so we will need WAMP (1.4.4 or greater). You can get the installation package here: http://www.wampserver.com/download.php
Launch the setup by clicking on the executable file you just downloaded (here wamp5_1.4.4.exe
).
Keep default install options:
- Install WAMP in
C:\wamp
- Set www root folder as
C:\wamp\www
Once installation is completed:
- If WAMP didn't loaded automatically (icon in the system tray in the lower right of the screen), load it (Stat menu, Programs, WampServer, Start Wampserver)
- Type http://localhost in a browser
- Once the page has loaded, click on Tools > phpinfo() (http://localhost/exemples/phpinfo.php) to display the complete PHPINFO information.
- Take note of the path to the
php.ini
file (Configuration File (php.ini) Path). It should look likeC:\wamp\apache\php.ini
- Open the file
php.ini
in any text editor and go to the Dynamic Extensions section. Activate the SOAP, Curl and Gettext extensions. Simply remove the ";" at the beginning of the lines.
If you can not see the extension in the list, you will need to add it manually:
extension=php_soap.dll extension=php_curl.dll extension=php_gettext.dll
The corresponding DLL files must be present in the extensions folder of PHP. It should be
C:\wamp\php\ext
by default. If you can not find it, look in the PHPINFO ("local value" for parameter
extension_dir, visible in php.ini
as well), you will notice something like C:/wamp/php/ext/
.
- Restart Apache (left-click on the WAMP icon in the systray > Apache > Restart Service)
- Check in the PHPINFO if the new extensions loaded correctly (look for a section with their name).
You need a Mapscript version compiled for PHP5/Win32. You can get one here: http://www.maptools.org/dl/mapserver-4.5-win32-php5.0.3.zip
If the link doesn't work, go to http://dl.maptools.org/dl/ and look for mapserver-4.5-win32-php5.0.3.zip or newer.
Note
MapServer for Windows/PHP5 archives are also available on CartoWeb website at http://cartoweb.org/downloads.html#msw. Additional instructions for installing DLL's are given in the matching README.txt files.
- Once you have downloaded the archive, uncompress it in any directory.
- The README.txt included in the archive tells you where you must place the various files:
- Unzip gdal-1.2.5.zip, libcurl-7.10.7_dll.zip, xerces_dll.zip, ECW_DLL.zip,
pdfdll.zip, libpq.zip in
C:\WINNT\System32
if you are using Windows 2000/NT (C:\Windows\System32
for XP andC:\Windows\System
for 95/98/Me) - Move
php_mapscript_45.dll
in the extensions folder of PHP (see PHPINFO, default isC:\wamp\php\ext
). The filephp_proj.dll
is outdated, you can ignore it. - Open
php.ini
and add a call to this extension:extension=php_mapscript_45.dll
- Unzip gdal-1.2.5.zip, libcurl-7.10.7_dll.zip, xerces_dll.zip, ECW_DLL.zip,
pdfdll.zip, libpq.zip in
- Restart Apache and check that the mapscript module is loaded correctly (look in PHPINFO)
- Install Proj4 by following the instructions in URL indicated in the README.txt:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WindowProjHowTo > Using Prebuilt Binaries
- Download the archive Proj4 here: ftp://ftp.remotesensing.org/proj/proj446_win32_bin.zip
- Uncompress it in C:\. If you want to install it elsewhere, look at point 2 of Using Prebuilt Binaries
- Point 3 in the README is irrelevant in our case.
-
CartoWeb setup script
cw3setup.php
requires an "unzip" program to uncompress libraries and demo data archives. If you don't have one installed, download one on the Web (type "unzip.exe" in your favorite search engine) and put it for instance in yourC:\Windows
directory.
Note
The .exe in the Mapserver archive are not needed.
Note
If you are using Windows XP, it may be necessary to modify the extension_dir value in php.ini by using "\" instead of "/"