[UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS
Zhonghai Wang
zhonghaiw at GMAIL.COM
Fri May 26 05:24:37 PDT 2006
Hi Nicolas,
I've fixed the CGI error, because I need another DLL for my system to run
MapServer : MSVCR71.DLL, which is not available for every Windows system.
thanks a lot.
zhonghai
On 5/24/06, Fortin,Nicolas [SteFoy] <nicolas.fortin at ec.gc.ca> wrote:
>
> Hi Zhongai,
>
> First, open a command window type mapserver -v
> You should get something like
> MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
>
> Second, try to use a complete windows path for your map parameter (ex:
> http://192.168.252.20/cgi-bin/mapserv.exe?map=C:\ms4w\apps\Demo\demo.map&mode=browse)
>
> Third, most of the problems with IIS are permissions issues. Run filemon
> (http://www.sysinternals.com/Utilities/Filemon.html) while trying to
> access your map and search for ACCESS DENIED in the result column.
>
> Hope this helps,
> Nicolas
>
>
> -----Message d'origine-----
> De : Zhonghai Wang [mailto:zhonghaiw at gmail.com]
> Envoyé : 24 mai 2006 13:15
> À : Fortin,Nicolas [SteFoy]
> Objet : Re: RE : [UMN_MAPSERVER-USERS] mapfile configuration problem --
> MapServer for IIS
>
>
> Hi guys,
>
> here is some info about my system:
>
> Windows 2003
> IIS 6
> MS4W 4.8.1
>
> there is no problem to open the normal web page now, such as the index
> page. But if I am trying to get a map from the server using the following
> URL:
>
>
> http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map&mode=browse
>
> then the CGI error comes. I've read the previously posted messages, and
> the same CGI error occurred also for the old mapserver version. I am trying
> to fix my problem in the same way as given in those messages, but this still
> does not work.
>
> wondering how to fix it. Any ideas?
>
> thanks
>
> zhonghai
>
> On 5/24/06, Zhonghai Wang <zhonghaiw at gmail.com> wrote:
> Hi Nicolas,
>
> thanks so much for your info. After I enabled the CGI extension, it works
> well. But if I tried to open the application using this url:
>
> http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map
>
> the application can not be opened, the following error message is returned
> instead:
>
> ***
> CGI Error
> The specified CGI application misbehaved by not returning a complete set
> of HTTP headers.
> ****
>
> I am a newbie in Windows server things, I very appreciate it if you light
> me a little bit more.
>
> zhonghai
>
> On 5/24/06, Fortin,Nicolas [SteFoy] <nicolas.fortin at ec.gc.ca > wrote:
> Hi
>
> Did you enabled CGI extensions in IIS? If not, you can do this in the IIS
> Manager under the Web Services Extensions folder.
>
> Nicolas
> -----Message d'origine-----
> De : UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] De
> la part de Zhonghai Wang
> Envoyé : 24 mai 2006 11:19
> À : MAPSERVER-USERS at LISTS.UMN.EDU
> Objet : Re: [UMN_MAPSERVER-USERS] mapfile configuration problem --
> MapServer for IIS
>
>
> thanks guys, after I set the imageurl as http://localhost/ms_tmp,
> MapServer works well again. URL should be a real URL, that's it.
>
> I am trying now to install MapServer with IIS 6 on Windows 2003, the same
> configurations as on WinXP do not work on Windows 2003 any more, and I can
> not even open the mapserver initial page.
>
> I've searched in our list achieves, somebody says that there may be some
> problems with IIS 6, but I still can not figure out where the problem is.
>
> could anyone give me clues?
>
> thanks for any tips.
>
> zhonghai
>
> On 5/24/06, Till Adams <adams at terrestris.de > wrote:
> Zhongai,
>
> your imageurl should be an URL, not a path, e.g.
>
> http://localhost/ms_tmp
>
> Leave the last slash in your imagepath. It is also ok only to use
> forward slashes.
>
> Cheers, Till
>
> Zhonghai Wang schrieb:
>
> > Hi guys,
> >
> > I am trying to install MapServer with IIS, and I've done all the
> > things following this doc:
> >
> > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS
> >
> > but there are some problems with the mapfile path configuration, I set
> > the paths like this:
> >
> > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\"
> > IMAGEURL "C:\ms4w\tmp\ms_tmp\"
> > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html"
> > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well.
> > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference
> > map (in the Reference object)
> >
> > the IMAGEURL and IMAGE paths do not work, because the generated map
> > images, scalebar and reference map are already there,
> > and the browser can not find and display them. did I made some
> > mistakes when I set the paths?
> >
> > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder
> > readable and writable.
> >
> > thanks for any tips
> >
> > zhonghai
>
>
> --
> ******************************************
> * released: AmeiN! ArcMap-Export-2-UMN *
> * LiveLinux 'WebGIS on CD' *
> * 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060526/ff2a52e0/attachment.htm>
More information about the MapServer-users
mailing list