[mapserver-dev] - configure

scott159 at free.fr scott159 at free.fr
Sat Jan 28 07:52:52 EST 2012


Hi,

I would like to compile mapserver-6.2-dev but I have some questions to succeed :

- With "--with-apache-module", I don't know where I can find mod_mapserver and mod_mapcache after compilation. Where are necessary files to activate in httpd.conf ?

- To configure mapserver and mapcache with cgi mode, I think add these lines in httpd.conf, is it ok ?

<IfModule mod_mapcache>
   <Directory /path/to/directory>
      Order Allow,Deny
      Allow from all
   </Directory>
   MapCacheAlias /mapcache "/path/to/directory/mapcache.xml"
</IfModule>

<IfModule mod_mapserver>
   <Directory /path/to/directory>
      Order Allow,Deny
      Allow from all
   </Directory>
   ScriptAlias /mapserv "/path/to/directory/mapserv"
</IfModule>

--> http://localhost/mapserv
--> http://localhost/mapcache

- For fcgi mode :

<IfModule mod_fcgid.c>
   IPCCommTimeout 120
   MaxProcessCount 10
   FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/path/to/directory/mapcache.xml"
   ScriptAlias /map.fcgi "/path/to/directory/mapcache"
   <Location /map.fcgi>
      Order Allow,Deny
      Allow from all
      SetHandler fcgid-script
   </Location>
   ScriptAlias /mapserv.fcgi "/path/to/directory/mapserv"
   <Location /mapserv.fcgi>
      Order Allow,Deny
      Allow from all
      SetHandler fcgid-script
   </Location>
</IfModule>

--> http://localhost/mapserv.fcgi
--> http://localhost/map.fcgi

- "--with-php=yes" is it right flag to activate PHP MapScript Extension or can I specify path ?

Thanks a lot

scott


More information about the mapserver-dev mailing list