Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Rahkonen Jukka (MML)
Hi,

Please use “Reply all” for sending mail to the list as well. If your trouble 
gets solved the mailing list archives may help other Mapserver users later.

You have such a new Mapserver version that you must take care of some 
additional security settings 
https://www.mapserver.org/optimization/limit_mapfile_access.html#limit-mapfile-access

Have a look at your Apache httpd.conf file. Do you see a configuration of 
environment variable MS_MAP_PATTERN there? I am sorry but I cannot help with 
writing correct regexp, I do not really understand it myself. It takes me 
usually a few copy-paste-edit-test rounds to make the regexp work.

-Jukka Rahkonen-

Lähettäjä: Kenneth Kniel 
Lähetetty: maanantai 15. marraskuuta 2021 21.37
Vastaanottaja: Rahkonen Jukka (MML) 
Aihe: Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable 
"map" is not set

Thank you sir.

Now I have Bobb's problem  a permissions issue I believe.

msLoadMap(): Unable to access file. (/ms4w/apps/tutorial/htdocs/example1-1.map)



On Nov 15, 2021, at 2:03 PM, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:

Hi,

You seem to have an extra space character in your url after /mapserv?. See %20 
in that place, it is space as url-encoded.

-Jukka Rahkonen-


Lähettäjä: MapServer-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 Puolesta Kenneth Kniel via MapServer-users
Lähetetty: maanantai 15. marraskuuta 2021 20.19
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: [mapserver-users] msCGILoadMap(): Web application error. CGI variable 
"map" is not set

Mac OS 11.6.1
Mapserver 7.6.4. Homebrew install

Working my way through the tutorial.  Going slow a lot of permission issues.

The Mapserver is running I go the no query response when I access from the 
server.


Trying to run the first example
//localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map<http://localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map>

Getting error in subject line above.

Thoughts?

Thanks in advance.

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Rahkonen Jukka (MML)
Hi,

You seem to have an extra space character in your url after /mapserv?. See %20 
in that place, it is space as url-encoded.

-Jukka Rahkonen-


Lähettäjä: MapServer-users  Puolesta 
Kenneth Kniel via MapServer-users
Lähetetty: maanantai 15. marraskuuta 2021 20.19
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] msCGILoadMap(): Web application error. CGI variable 
"map" is not set

Mac OS 11.6.1
Mapserver 7.6.4. Homebrew install

Working my way through the tutorial.  Going slow a lot of permission issues.

The Mapserver is running I go the no query response when I access from the 
server.


Trying to run the first example
//localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map<http://localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map>

Getting error in subject line above.

Thoughts?

Thanks in advance.
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Basques, Bob (CI-StPaul)
Does that MAPFILE actually exist in that location on the server:

map=/ms4w/apps/tutorial/htdocs/example1-1.map

If it does, then you may have a config/permissions problem on the (root of the) 
server.  Mac OS has it’s own web service for example and it sometimes takes a 
little fiddling to get add-on working.

Bobb






From: MapServer-users  on behalf of 
"mapserver-users@lists.osgeo.org" 
Reply-To: Kenneth Kniel 
Date: Monday, November 15, 2021 at 12:19 PM
To: "mapserver-users@lists.osgeo.org" 
Subject: [mapserver-users] msCGILoadMap(): Web application error. CGI variable 
"map" is not set

Think Before You Click: This email originated outside our organization.

Mac OS 11.6.1
Mapserver 7.6.4. Homebrew install

Working my way through the tutorial.  Going slow a lot of permission issues.

The Mapserver is running I go the no query response when I access from the 
server.


Trying to run the first example
//localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map<http://localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map>

Getting error in subject line above.

Thoughts?

Thanks in advance.
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Kenneth Kniel via MapServer-users
Mac OS 11.6.1
Mapserver 7.6.4. Homebrew install

Working my way through the tutorial.  Going slow a lot of permission issues.

The Mapserver is running I go the no query response when I access from the 
server.


Trying to run the first example 
//localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map=states=map
 


Getting error in subject line above.

Thoughts?

Thanks in advance.___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] msCGILoadMap(): Web application error CGI variable map is not set

2014-05-20 Thread Enrico Fiore
Hi,
thanks for the answers.

I have solved the error closing the tag input type=hidden name=program
value=/cgi-bin/mapserv on the inizalization file.

To change method from POST to GET don't resolve nothing if I have
understood, the difference bettween POST and GET, would be that in the
first case the attributes that you pass are visible, instread with POST
they aren't visible in the map url.

Enrico


2014-05-14 15:42 GMT+02:00 Krishna Priya Patury krishna.pat...@gmail.com:

 You could try changing the form method from POST to GET in the
 initialization file(secondo_i.html) to see what the map value is being sent
 as.


 On Wed, May 14, 2014 at 9:29 AM, Rahkonen Jukka (Tike) 
 jukka.rahko...@mmmtike.fi wrote:

  I don’t know what really fails because I have never used Mapserver this
 way. However, the error message seems to be true.

 When using Mapserver trough WMS the same message comes with a request


 http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilities

 If map parameter is used with an invalid value the error message is
 different


 http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilitiesmap=foo



 Have a look at the code and think if the name of your mapfile really goes
 into [map].



 -Jukka Rahkonen-







 Enrico Fiore wrote:



 Sorry I have sent the first message for error, I conclude it in this post

 the template file text is:

 !-- MapServer Template --
 html
 headtitleSeconda Mappa/title/head
 body
 form name=the_form method=GET action=[program]
 table width=100%
 tr
 td width=60%
 input name=img type=image src=[img]
 width=640 height=480 order=2
 /td
 td width=40% align=left
 table border=1 width=300
 tr
 td align=center colspan=3
 input type=submit value=Ricarica
 /td
 /tr
 tr
 td align=center colspan=3Zoom/td
 /tr
 tr
 td align=right width=100
 Zoom In
 input type=radio name=zoomdir
 value=1 [zoom_dir_1_check]
 /td
 td align=right width=100
 Size
 input type=text name=zoomsize size=2
 value=[zoomsize]
 /td
 /tr
 tr
 td align=center colspan=3
 Pan
 input type=radio name=zoomdir
 value=0 [zoomdir_0_check]
 /td
 /tr
 /table
 hr size=1
 table
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Regioni [Regioni_check]
 Regioni
 /td
 /tr
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Fiumi [Fiumi_check]
 Fiumi
 /td
 /tr
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Province [Province_check]
 Province
 /td
 /tr
 /table
 /td
 /tr
 /table
 input type=hidden name=imgxy value=320 240
 input type=hidden name=imgext value=[mapext]
 input type=hidden name=map value=[map]
 input type=hidden name=program value=[program]
 /form
 /body
 /html



 My question is what I miss in my exercise.

 Can anyone help me?

 And sorry for to have split the message in two post.

 With thanks,

 Enrico





 2014-05-14 14:58 GMT+02:00 Enrico Fiore enricofior...@gmail.com:

 Hi,

 I tried to create a simple map application whit zoom and pan
 capabilities, following the instructions contained in the book Beginning
 MapServer.
 I created a map file (secondo.map), an initialization file
 (secondo_i.html) and a template file (secondo.html).


 When I lunch the command

 http://localhost/secondo_i.html

 the browser shows this error message:

 msCGILoadMap(): 

[mapserver-users] msCGILoadMap(): Web application error CGI variable map is not set

2014-05-14 Thread Enrico Fiore
Hi,
I tried to create a simple map application whit zoom and pan capabilities,
following the instructions contained in the book Beginning MapServer.
I created a map file (secondo.map), an initialization file (secondo_i.html)
and a template file (secondo.html).

When I lunch the command

http://localhost/secondo_i.html

the browser shows this error message:

msCGILoadMap(): Web application error. CGI variable map is not set.

I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04


Text contained in initialization file:

html
headtitleMapServer Seconda mappa/title/head
body
form method=POST action=/cgi-bin/mapserv
input type=submit value=Clicca qui
input type=hidden name=program value=/cgi-bin/mapserv
input type=hidden name= map value =
/home/enrico/mapserverdata/secondo.map
input type=hidden name=zoomsize size=2 value=2
input type=hidden name=layers value=Regioni Fiumi
Province
/form
/body
/html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] msCGILoadMap(): Web application error CGI variable map is not set

2014-05-14 Thread Enrico Fiore
Sorry I have sent the first message for error, I conclude it in this post

the template file text is:

!-- MapServer Template --
html
headtitleSeconda Mappa/title/head
body
form name=the_form method=GET action=[program]
table width=100%
tr
td width=60%
input name=img type=image src=[img]
width=640 height=480 order=2
/td
td width=40% align=left
table border=1 width=300
tr
td align=center colspan=3
input type=submit value=Ricarica
/td
/tr
tr
td align=center colspan=3Zoom/td
/tr
tr
td align=right width=100
Zoom In
input type=radio name=zoomdir value=1
[zoom_dir_1_check]
/td
td align=right width=100
Size
input type=text name=zoomsize size=2
value=[zoomsize]
/td
/tr
tr
td align=center colspan=3
Pan
input type=radio name=zoomdir value=0
[zoomdir_0_check]
/td
/tr
/table
hr size=1
table
tr
td colspan=3
input type=checkbox name=layer
value=Regioni [Regioni_check]
Regioni
/td
/tr
tr
td colspan=3
input type=checkbox name=layer
value=Fiumi [Fiumi_check]
Fiumi
/td
/tr
tr
td colspan=3
input type=checkbox name=layer
value=Province [Province_check]
Province
/td
/tr
/table
/td
/tr
/table
input type=hidden name=imgxy value=320 240
input type=hidden name=imgext value=[mapext]
input type=hidden name=map value=[map]
input type=hidden name=program value=[program]
/form
/body
/html


My question is what I miss in my exercise.

Can anyone help me?

And sorry for to have split the message in two post.

With thanks,

Enrico




2014-05-14 14:58 GMT+02:00 Enrico Fiore enricofior...@gmail.com:

 Hi,
 I tried to create a simple map application whit zoom and pan capabilities,
 following the instructions contained in the book Beginning MapServer.
 I created a map file (secondo.map), an initialization file
 (secondo_i.html) and a template file (secondo.html).

 When I lunch the command

 http://localhost/secondo_i.html

 the browser shows this error message:

 msCGILoadMap(): Web application error. CGI variable map is not set.

 I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04


 Text contained in initialization file:

 html
 headtitleMapServer Seconda mappa/title/head
 body
 form method=POST action=/cgi-bin/mapserv
 input type=submit value=Clicca qui
 input type=hidden name=program value=/cgi-bin/mapserv
 input type=hidden name= map value =
 /home/enrico/mapserverdata/secondo.map
 input type=hidden name=zoomsize size=2 value=2
 input type=hidden name=layers value=Regioni Fiumi
 Province
 /form
 /body
 /html



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] msCGILoadMap(): Web application error CGI variable map is not set

2014-05-14 Thread Rahkonen Jukka (Tike)
I don’t know what really fails because I have never used Mapserver this way. 
However, the error message seems to be true.
When using Mapserver trough WMS the same message comes with a request
http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilities
If map parameter is used with an invalid value the error message is different
http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilitiesmap=foo

Have a look at the code and think if the name of your mapfile really goes into 
[map].

-Jukka Rahkonen-



Enrico Fiore wrote:

Sorry I have sent the first message for error, I conclude it in this post
the template file text is:

!-- MapServer Template --
html
headtitleSeconda Mappa/title/head
body
form name=the_form method=GET action=[program]
table width=100%
tr
td width=60%
input name=img type=image src=[img] width=640 
height=480 order=2
/td
td width=40% align=left
table border=1 width=300
tr
td align=center colspan=3
input type=submit value=Ricarica
/td
/tr
tr
td align=center colspan=3Zoom/td
/tr
tr
td align=right width=100
Zoom In
input type=radio name=zoomdir value=1 
[zoom_dir_1_check]
/td
td align=right width=100
Size
input type=text name=zoomsize size=2 
value=[zoomsize]
/td
/tr
tr
td align=center colspan=3
Pan
input type=radio name=zoomdir value=0 
[zoomdir_0_check]
/td
/tr
/table
hr size=1
table
tr
td colspan=3
input type=checkbox name=layer 
value=Regioni [Regioni_check]
Regioni
/td
/tr
tr
td colspan=3
input type=checkbox name=layer 
value=Fiumi [Fiumi_check]
Fiumi
/td
/tr
tr
td colspan=3
input type=checkbox name=layer 
value=Province [Province_check]
Province
/td
/tr
/table
/td
/tr
/table
input type=hidden name=imgxy value=320 240
input type=hidden name=imgext value=[mapext]
input type=hidden name=map value=[map]
input type=hidden name=program value=[program]
/form
/body
/html

My question is what I miss in my exercise.
Can anyone help me?

And sorry for to have split the message in two post.

With thanks,
Enrico


2014-05-14 14:58 GMT+02:00 Enrico Fiore 
enricofior...@gmail.commailto:enricofior...@gmail.com:
Hi,
I tried to create a simple map application whit zoom and pan capabilities, 
following the instructions contained in the book Beginning MapServer.
I created a map file (secondo.map), an initialization file (secondo_i.html) and 
a template file (secondo.html).

When I lunch the command

http://localhost/secondo_i.html
the browser shows this error message:

msCGILoadMap(): Web application error. CGI variable map is not set.
I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04


Text contained in initialization file:

html
headtitleMapServer Seconda mappa/title/head
body
form method=POST action=/cgi-bin/mapserv
input type=submit value=Clicca qui
input type=hidden name=program value=/cgi-bin/mapserv
input type=hidden name= map value = 
/home/enrico/mapserverdata/secondo.map
input type=hidden name=zoomsize size=2 value=2
input type=hidden name=layers value=Regioni Fiumi Province
/form
/body
/html


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] msCGILoadMap(): Web application error CGI variable map is not set

2014-05-14 Thread Krishna Priya Patury
You could try changing the form method from POST to GET in the
initialization file(secondo_i.html) to see what the map value is being sent
as.


On Wed, May 14, 2014 at 9:29 AM, Rahkonen Jukka (Tike) 
jukka.rahko...@mmmtike.fi wrote:

  I don’t know what really fails because I have never used Mapserver this
 way. However, the error message seems to be true.

 When using Mapserver trough WMS the same message comes with a request


 http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilities

 If map parameter is used with an invalid value the error message is
 different


 http://hip.latuviitta.org/cgi-bin/mapserv?service=wmsversion=1.3.0request=getcapabilitiesmap=foo



 Have a look at the code and think if the name of your mapfile really goes
 into [map].



 -Jukka Rahkonen-







 Enrico Fiore wrote:



 Sorry I have sent the first message for error, I conclude it in this post

 the template file text is:

 !-- MapServer Template --
 html
 headtitleSeconda Mappa/title/head
 body
 form name=the_form method=GET action=[program]
 table width=100%
 tr
 td width=60%
 input name=img type=image src=[img]
 width=640 height=480 order=2
 /td
 td width=40% align=left
 table border=1 width=300
 tr
 td align=center colspan=3
 input type=submit value=Ricarica
 /td
 /tr
 tr
 td align=center colspan=3Zoom/td
 /tr
 tr
 td align=right width=100
 Zoom In
 input type=radio name=zoomdir value=1
 [zoom_dir_1_check]
 /td
 td align=right width=100
 Size
 input type=text name=zoomsize size=2
 value=[zoomsize]
 /td
 /tr
 tr
 td align=center colspan=3
 Pan
 input type=radio name=zoomdir value=0
 [zoomdir_0_check]
 /td
 /tr
 /table
 hr size=1
 table
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Regioni [Regioni_check]
 Regioni
 /td
 /tr
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Fiumi [Fiumi_check]
 Fiumi
 /td
 /tr
 tr
 td colspan=3
 input type=checkbox name=layer
 value=Province [Province_check]
 Province
 /td
 /tr
 /table
 /td
 /tr
 /table
 input type=hidden name=imgxy value=320 240
 input type=hidden name=imgext value=[mapext]
 input type=hidden name=map value=[map]
 input type=hidden name=program value=[program]
 /form
 /body
 /html



 My question is what I miss in my exercise.

 Can anyone help me?

 And sorry for to have split the message in two post.

 With thanks,

 Enrico





 2014-05-14 14:58 GMT+02:00 Enrico Fiore enricofior...@gmail.com:

 Hi,

 I tried to create a simple map application whit zoom and pan capabilities,
 following the instructions contained in the book Beginning MapServer.
 I created a map file (secondo.map), an initialization file
 (secondo_i.html) and a template file (secondo.html).


 When I lunch the command

 http://localhost/secondo_i.html

 the browser shows this error message:

 msCGILoadMap(): Web application error. CGI variable map is not set.

 I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04





 Text contained in initialization file:

 html
 headtitleMapServer Seconda mappa/title/head
 body
 form method=POST action=/cgi-bin/mapserv
 input type=submit value=Clicca qui
 input type=hidden name=program value=/cgi-bin/mapserv
 input type=hidden name= map value =
 /home/enrico/mapserverdata/secondo.map
 input