[mapserver-users] Problems with mapserver wrapper script

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Thu Jul 1 05:00:26 PDT 2010


Hi,

I do not see anything wrong in it. It should work and perhaps give you another error as I am getting from Mapserver 5.2.1
msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter 

I would have a try by including the drive letter in the mapfile path and restarting Apache, but I fear it does not help. Another possibility is in one unnecessary "=" sign. Try
 SetEnvIf Request_URI "/cgi-bin/wms_dgis.exe" 

-Jukka Rahkonen-


> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta 
> David Alda Fernandez de Lezea
> Lähetetty: 1. heinäkuuta 2010 14:37
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Problems with mapserver wrapper script
> 
> Hi list,
> 
> I'm facing a small problem. I've copied mapserv.exe to a new 
> file called wms_dgis.exe, I added to httpd.conf the following line 
> 
> SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" 
> MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map
> 
> I also changed the onlineresource value of the mapfile to
> 
> "wms_onlineresource"  	
> "http://192.168.1.65/cgi-bin/wms_dgis.exe?"
> 
> When I type in the web browser the url 
> http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get:
> 
> No query information to decode. QUERY_STRING is set, but empty. 
> 
> So I think I'm on the right way, but when I make a 
> getCapabilities request like:
> 
> http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=G
etCapabilities
> 
> I get:
> 
> loadMap(): Web application error. CGI variable "map" is not set.
> 
> I've looked into Apache's access.log but I don't see anything odd.
> 
> MS4W package
> Mapserver 5.6.1
> Win XP
> 
> Am I doing something wrong??
>  
>  
> Un saludo,
>  
> ······························································
> ····················
> 
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
> Biodiversidad
>  
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
> 
> ······························································
> ····················
> Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
> ······························································
> ····················
> email: dalda at ikt.es                                web: www.ikt.es
> ······························································
> ····················
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the MapServer-users mailing list