OK, thanks. I have just tried this and it works fine. Now my problem is :
I have mapserv.exe, php-cgi and all dlls in cgi-bin (or cgi-bin2) directory and a PHP application in my /ms4w/apps directory so that I can see it from index.phtml in Apache/htdocs. My PHP application calls files and directories from its own root, of course, and so I want to call mapserv.exe from cgi-bin directory but I want to force the redirectory to My PHP apps root in order to configure evrything fine to work ! Is there any "REDIRECT_PATH" variable that I can set in Mapserver map file or in Apache conf file to separate cgi from php application that call it from another directory ? 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 [EMAIL PROTECTED] - http://www.planetek.it -- On 7 Mar 2007 at 11:44, Till Adams wrote: > 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 > >[EMAIL PROTECTED] - 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 > [EMAIL PROTECTED] * http://www.terrestris.de
