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> <Location /tiki/files> AllowOverride All Options -Indexes FollowSymLinks MultiViews ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> <IfModule mod_mime.c> SetHandler default-handler </IfModule> </Location>
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...
When someone wants to download a layer, all the files are copied in the /tiki/files location for download. Unfortunately on my system the file with the extension .MAP are handled as html maps. I created a special directive for http to handle all the files in the /tiki/files directory as normal files.
please link to the live Feature on tikiwiki.org
or go to http://map.sopac.org/
see also http://www.sopac.org/tiki/tiki-index.php?page=MapServer
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
I hang out on the irc #tikiwiki channel