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

Enrico Fiore enricofiore80 at gmail.com
Wed May 14 05:58:24 PDT 2014


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>
    <head><title>MapServer 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140514/a98e5108/attachment.htm>


More information about the MapServer-users mailing list