[mapserver-users] mapserver-users Digest, Vol 163, Issue 11

Boubacar Bah bahbouba.909 at gmail.com
Wed Aug 18 08:30:20 PDT 2021


hello jeff mkenna
I solved the first problem thanks to your solution but it sends another
error :* msLoadMap(): Unable to access file.
(C:\ms4w\Apache\hdocs\routes.map). *and yet the mapfile does exist in the
location I gave to the map parameter.
can you help to solve this problem?


Le mer. 18 août 2021 à 15:53, <mapserver-users-request at lists.osgeo.org> a
écrit :

> Send mapserver-users mailing list submissions to
>         mapserver-users at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.osgeo.org/mailman/listinfo/mapserver-users
> or, via email, send a message with subject or body 'help' to
>         mapserver-users-request at lists.osgeo.org
>
> You can reach the person managing the list at
>         mapserver-users-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mapserver-users digest..."
>
>
> Today's Topics:
>
>    1. MAP Query Parameter (Patrick Young)
>    2. asking help (Boubacar Bah)
>    3. Re: MAP Query Parameter (J?rg Thomsen (WhereGroup))
>    4. Re: asking help (J?rg Thomsen (WhereGroup))
>    5. asking help (Boubacar Bah)
>    6. Re: asking help (J?rg Thomsen (WhereGroup))
>    7. Re: asking help (Jeff McKenna)
>    8. Asking help (Boubacar Bah)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 17 Aug 2021 16:37:30 -0600
> From: Patrick Young <patrick.mckendree.young at gmail.com>
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] MAP Query Parameter
> Message-ID:
>         <CADXYQQ4=V=
> JvEgbEhWknyH88R8DOxXpCGPX+g1D9GMMuUbALpw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello!
>
> I've been working through the mapserver tutorial where my setup is fastcgi
> using nginx + supervisor running the mapserv process, and the two are
> talking via a unix socket.
>
> I had been banging my head on a 502 error but finally figured it out when I
> set the map= query parameter to the full, absolute path of the mapfile I
> was trying to use.
>
> In the docs (https://mapserver.org/cgi/controls.html) it mentions
>
> > MAP [filename] Path, relative to the CGI directory, of the map file to be
> used.
>
> I am curious though, what is the "CGI directory" when you're running under
> fastcgi?
>
> Thanks!
> Patrick
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210817/49b4ff99/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Aug 2021 01:12:44 +0100
> From: Boubacar Bah <bahbouba.909 at gmail.com>
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] asking help
> Message-ID:
>         <CALOg8kHFb5C19db0DZ4hnTVUWuEoHWbERO0rCK=
> ZSjGF7x_ORg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> hello how are you, l try to launch an url about mapfile in mapserver but he
> send an error:  mapserv(): Web application error. Traditional BROWSE mode
> requires a TEMPLATE in the WEB section, but none was provided.
> some one can help to resolve this issue
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/d2a47321/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Aug 2021 09:01:25 +0200
> From: J?rg Thomsen (WhereGroup)  <joerg.thomsen at wheregroup.com>
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] MAP Query Parameter
> Message-ID: <ed449c02-5732-c0a6-8149-01f59947af38 at wheregroup.com>
> Content-Type: text/plain; charset=utf-8
>
> Hello Patrick,
>
> the cgi-directory should be the directory, where your mapserver binary
> is stored.
>
> BUT have you tried to use the absolute path? As I know, it is always the
> absolute path like in
> https://live.osgeo.org/en/quickstart/mapserver_quickstart.html#id2
>
> When you're starting with mapserver right know, please read the security
> advices Steve mentioned a few month ago:
> https://mapserver.org/announcements/2021-03-30-limit-mapfile-access.html
>
> J?rg
>
>
>
> Am 18.08.21 um 00:37 schrieb Patrick Young:
> > Hello!
> >
> > I've been working through the mapserver tutorial where my setup is
> > fastcgi using nginx?+ supervisor running the mapserv process, and the
> > two are talking via a unix socket.
> >
> > I had been banging my head on a 502 error but finally figured it out
> > when I set the map= query parameter to the full, absolute path of the
> > mapfile I was trying to use.??
> >
> > In the docs (https://mapserver.org/cgi/controls.html
> > <https://mapserver.org/cgi/controls.html>) it mentions
> >
> >> MAP [filename] Path, relative to the CGI directory, of the map file to
> > be used.
> >
> > I am curious though, what is the "CGI directory" when you're running
> > under fastcgi?
> >
> > Thanks!
> > Patrick
> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
> Viele Gr??e,
> J?rg Thomsen
>
> --
> *****************************************************************
> Aufbau von Geodateninfrastrukturen mit Open-Source-Software
> FOSS Academy 5 Tage-Kompaktkurs ?Sommerschule 2021?
> Jetzt anmelden: https://foss-academy.com/kompaktkurse/
> *****************************************************************
>
>
>
> J?rg Thomsen
> WhereGroup GmbH
> Bundesallee 23
> 10717 Berlin
> Germany
>
> Fon: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 5130 278 11
>
> joerg.thomsen at wheregroup.com
> www.wheregroup.com
>
> Gesch?ftsf?hrer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
>
> -------------------------------
> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 18 Aug 2021 09:17:11 +0200
> From: J?rg Thomsen (WhereGroup)  <joerg.thomsen at wheregroup.com>
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] asking help
> Message-ID: <b05f153a-b574-daf5-d427-b757c5c4f34d at wheregroup.com>
> Content-Type: text/plain; charset=utf-8
>
> Hi
>
> congratulations, your installation seems to work, mapserver is able to
> grumble an moan!
>
> A WMS needs some more parameters to know what to do, try to add the
> getCapabilities-Paramters to your request:
> ..map=/blah/blubb.map&REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS
>
> To see a map you would have to add the getmap request, but you don't
> want to type that into your browser, so load your wms into any
> wms-client (QGIS, Mapbender, ..).
>
> An easy way is to use the 'built-in' OL-Client:
> https://mapserver.org/cgi/openlayers.html
>
> (here can find a short introduction to the browse-mode mapserver
> mentions in the error-message:
>
> https://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/tutorial/htdocs/example1-9.map&layer=states&layer=modis
> but I guess, you wont need this)
>
> J?rg
>
>
>
> Am 18.08.21 um 02:12 schrieb Boubacar Bah:
> > hello how are you, l try to launch an url about mapfile in mapserver but
> > he send an error:? mapserv(): Web application error. Traditional BROWSE
> > mode requires a TEMPLATE in the WEB section, but none was provided.
> > some one can help to resolve this issue
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
> Viele Gr??e,
> J?rg Thomsen
>
> --
> *****************************************************************
> Aufbau von Geodateninfrastrukturen mit Open-Source-Software
> FOSS Academy 5 Tage-Kompaktkurs ?Sommerschule 2021?
> Jetzt anmelden: https://foss-academy.com/kompaktkurse/
> *****************************************************************
>
>
>
> J?rg Thomsen
> WhereGroup GmbH
> Bundesallee 23
> 10717 Berlin
> Germany
>
> Fon: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 5130 278 11
>
> joerg.thomsen at wheregroup.com
> www.wheregroup.com
>
> Gesch?ftsf?hrer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
>
> -------------------------------
> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 18 Aug 2021 10:59:35 +0100
> From: Boubacar Bah <bahbouba.909 at gmail.com>
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] asking help
> Message-ID:
>         <CALOg8kEru75Nb35twmeu9uyc85woRFfhcjLfURS4h34r=
> xyPEQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
>  hello how are you ; i'm using windows, and i'm using openlayer
> and l use this url:
>
> http:\\localhost\cgi-bin\mapserv.exe?\C:\ms4w\Apache\hdocs\exe.map&layer=quinzefevrier&mode=map
> this is my web section in my mapfile:
>
> WEB
>         IMAGEPATH "/ms4w/tmp/ms_tmp/"
>         IMAGEURL "/ms_tmp/"
>     END # WEB
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/1c371c72/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 6
> Date: Wed, 18 Aug 2021 12:23:32 +0200
> From: J?rg Thomsen (WhereGroup)  <joerg.thomsen at wheregroup.com>
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] asking help
> Message-ID: <17839215-21d5-7dcb-9d24-c3c4a713ae50 at wheregroup.com>
> Content-Type: text/plain; charset=utf-8
>
> hello again,
>
> try
>
> http:\\localhost\cgi-bin\mapserv.exe?C:\ms4w\Apache\hdocs\exe.map&REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS
>
>
> AND
>
>
> http:\\localhost\cgi-bin\mapserv.exe?C:\ms4w\Apache\hdocs\exe.map&layer=quinzefevrier&mode=browse&template=OpenLayers
>
> as in
> https://mapserver.org/cgi/openlayers.html
>
>
> J?rg
>
>
> Am 18.08.21 um 11:59 schrieb Boubacar Bah:
> > ?hello how are you ; i'm using windows, and i'm using openlayer
> > and l use this url:
> >
> http:\\localhost\cgi-bin\mapserv.exe?\C:\ms4w\Apache\hdocs\exe.map&layer=quinzefevrier&mode=map
> > this is my web section in my mapfile:
> >
> > WEB
> >         IMAGEPATH "/ms4w/tmp/ms_tmp/"
> >         IMAGEURL "/ms_tmp/"
> >     END # WEB
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
> Viele Gr??e,
> J?rg Thomsen
>
> --
> *****************************************************************
> Aufbau von Geodateninfrastrukturen mit Open-Source-Software
> FOSS Academy 5 Tage-Kompaktkurs ?Sommerschule 2021?
> Jetzt anmelden: https://foss-academy.com/kompaktkurse/
> *****************************************************************
>
>
>
> J?rg Thomsen
> WhereGroup GmbH
> Bundesallee 23
> 10717 Berlin
> Germany
>
> Fon: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 5130 278 11
>
> joerg.thomsen at wheregroup.com
> www.wheregroup.com
>
> Gesch?ftsf?hrer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
>
> -------------------------------
> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 18 Aug 2021 09:05:39 -0300
> From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] asking help
> Message-ID:
>         <45a1a2fc-34c2-457c-e6bc-ef9aab53cd22 at gatewaygeomatics.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi Boubacar,
>
> Since you are using MS4W, here are some related points for you:
>
> - you are missing the "MAP=" part of your request, such as:
>
>
>
> https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=map&LAYERS=all
>
> - on your MS4W home page (http://127.0.0.1) you can see a link to "open
> map viewer in new window" (which uses the OpenLayers template) such as:
>
>
>
> https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all
>
> You can modify that url for your local mapfile, such as:
>
>
>
> http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all
>
> Make sure that your "MAP=" path to your local mapfile is correct.
>
>
> Thank-you for using MS4W.
> "MS4W: open doors as well as windows"
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
>
> On 2021-08-18 6:59 a.m., Boubacar Bah wrote:
> >  ?hello how are you ; i'm using windows, and i'm using openlayer
> > and l use this url:
> >
> http:\\localhost\cgi-bin\mapserv.exe?\C:\ms4w\Apache\hdocs\exe.map&layer=quinzefevrier&mode=map
> > this is my web section in my mapfile:
> >
> > WEB
> >          IMAGEPATH  "/ms4w/tmp/ms_tmp/"
> >          IMAGEURL  "/ms_tmp/"
> >      END  # WEB
> >
> >
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 18 Aug 2021 15:53:12 +0100
> From: Boubacar Bah <bahbouba.909 at gmail.com>
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Asking help
> Message-ID:
>         <
> CALOg8kGsh1__+4rZBABX+i7feAbceBGVy7_YKQwL1wgGdH+Rdw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I try to launch an map file but they send an error: msCGILoadMap():web
> application error. CGI variable "map" is not set if some one can help me
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/68f7fb5d/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> ------------------------------
>
> End of mapserver-users Digest, Vol 163, Issue 11
> ************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/93645d1a/attachment-0001.html>


More information about the mapserver-users mailing list