History: TikiMapDoc
Preview of version: 10
franck has developed and Id'ed some of the dependencies
you need Mapserver v4.0 php_mapscript.so and have your .map files in /var/www/html/map/. This is configurable from the Admin/Features menu.
The Maps File Gallery contains a binary version of php_mapscript.so that may work for you. It will also contains some sample map files and layer files for you to set up a basic application.
Mapserver v4.0 needs to work from php.cgi and not the apache module.
The default map file is pacific.map if you do not specify anything when clicking on tiki-map.phtml. This is also configurable from the Admin/Features menu.
I use the following conf file for Apache:
AddHandler phtml-script .phtml Action phtml-script /cgi-bin/php.cgi #protect mapserver against downloads <Directory /var/www/html/map> AllowOverride All Options -Indexes FollowSymLinks MultiViews ExecCGI <IfModule mod_access.c> Order allow,deny Deny from all </IfModule> </Directory> <Directory /var/www/html/map/images> AllowOverride All Options -Indexes FollowSymLinks MultiViews ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <Directory /var/www/html/map/graphics> AllowOverride All Options -Indexes FollowSymLinks MultiViews ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory>
As you see from this file the cgi version of php is in the /cgi-bin/ directory of the web server. This is why the map rendering page is called tiki-map.phtml instead of the classical php extension. Hopefully in the next version of Mapserver the mapscript will run inside the php apache module.
Your files that compose the layers must be in the data subdirectory of where are your map files. ie /var/www/html/map/data. They are then manageable with the Layer Manager. You can create subdirectories and upload your geographic files...
please link to the live Feature on tikiwiki.org
or go to http://map.sopac.org/
This page is for the latest released stable version or release candidate(not stuff in CVS).
- can the required items be included in the installation? as an option? Unlikely: Mapserserver needs to be properly configured depending of your mileage.
Who is working here generally?
UserPagefranck
UserPagemose