ms4w : mapserv.exe installation under Apache

Till Adams adams at TERRESTRIS.DE
Wed Mar 7 05:44:02 EST 2007


Fabio D'Ovidio schrieb:

>Hi !
>
>I have installed ms4w and I have mapserv.exe in cgi-bin directory with its dll.
>
>Well, now I want to change under Apache my binary mapserv.exe. So I want to keep all 
>setting for apache of my first ms4w installation, but I want to change only the cgi and its dll 
>they are in another directory.
>
>Until now I have worked more with IIS. Which conf file I have to change in apache to install 
>mapserver ?
>
>I have tried with :
>
>httpd.conf
>
>and I have changed path for mapserv.exe and its dll.
>
>Any help ?
>
>thanks
>
>--
>Fabio D'Ovidio
>
>Web GIS Staff 
>Planetek Italia s.r.l.
>Via Massaua 12, I-70123 Bari 
>Tel.: +39 080 5343750 Fax: +39 080 5340280 
>dovidio at planetek.it - http://www.planetek.it 
>--
>
>  
>

Fabio,

there is no need to change so much. 
the easiest way is just to delete all dlls and mapserv.exe from the 
system and use the new ones.

Your second possibility is to change the cgi-bin directory in the 
https.conf file or set a second one, if you want to use both mapservers, 
the one which came with ms4w and your new installation. You **may** 
define a second cgi-directory in the httpd.conf file.

Therefore copy all the stuff where the cgi-bin is defined in the 
httpd.conf (from ScriptAlias /cgi-bin/ TO </directory> +/- 12 lines) and 
paste it into the httpd.conf file below (please make a backup-copy of 
the https.conf first), rename the alias name cgi-bin to whatever you 
want (e.g. cgi-bin_2) and set the path to another directory (e.g. from 
ms4w/apache/cgi-bin/ to ms4w/apache/cgi-bin_2/ (and create that 
directory of course!).

Then copy all new mapserver stuff (all Dll's AND mapserv.exe) into 
ms4w/apache/cgi-bin_2/, restart apache (systempanel -> administration -> 
services) and you're fine. Just use the new cgi-directory in your mapfile!

Greetings form Bonn,

Till

-- 
*****************************************
     SensorGIS 'Geodaten in Echtzeit'		
        http://www.sensorgis.de	 		
         http://www.terrestris.de	 		
*****************************************

------------------------------------------

Dipl. Geogr. Till Adams
terrestris, H. Paulsen& T. Adams GbR
Siemensstr. 8 * 53121 Bonn
Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
info at terrestris.de * http://www.terrestris.de



More information about the mapserver-users mailing list