[ka-Map-users] "Cleaner" Apache Configuration for ka-map

Micah Cochran mcochran at ci.athens.al.us
Fri May 27 16:15:55 EDT 2005


The documentation says that there is a cleaner way to configure ka-map. So I
want to tell you the cleaner way I configured it. I am doing this on Windows
(XP) machine using the MS4W. I configured it similarly to the way gmap is
configured in this package. 

- I extracted ka-map's zip to C:\ms4w\apps\ka-map then 
- copied the entire gmap folder's contents (C:\ms4w\apps\gmap) to
C:\ms4w\apps\ka-map.
- did the following variable modifications in config.php (I commented the
others out using the // at the start of the line to comment the line out, or
you can delete them)

$szPHPMapScriptModule = 'php_mapscript_44.'.PHP_SHLIB_SUFFIX;
$szPHPGDModule = 'php_gd2.'.PHP_SHLIB_SUFFIX;
$aszMapFiles = array(
  "gmap"   => array( "GMap", "gmap75.map",
                     array( 15000000, 7500000, 3000000, 1000000 ),
                     "PNG")

- added the following to Apache's http.conf in C:\ms4w\Apache\conf 
Alias /ka-map/ "/ms4w/apps/ka-map/htdocs/"

<Directory "/ms4w/apps/ka-map/htdocs/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews 
  Order allow,deny
  Allow from all
</Directory>

- Used cygwin's shell to stop and start Apache web server
'net stop "Apache Web Server"' then 'net start "Apache Web Server"' (this
can also be done by simply restarting the machine)

Happy Configuring!
Micah Cochran




More information about the ka-Map-users mailing list