[Mapserver-users] map file permission denied

Nick Petersen-Bergeron bergeron at zedxinc.com
Mon Oct 27 13:20:31 PST 2003


I'm trying to open a basic mapfile, and I'm continually getting a mapfile 
permission denied error.  The permissions on the mapfile are set to 
777.  Here is the mapfile:

#
# Start of map file
#
NAME YIELD
STATUS ON
SIZE 150 150
EXTENT -91.1644 34.6098 -91.1306 34.6399
UNITS DD
SHAPEPATH "./"
IMAGECOLOR 255 255 255


##
## Start of web interface definition
##
WEB
   IMAGEPATH "/home/httpd/html/dy_images/"
   IMAGEURL "/dy_images/"
END

SYMBOL
   NAME "circle"
   TYPE ellipse
   FILLED true
   POINTS
     1 1
   END
END

LAYER
         NAME image
         TYPE raster
         DATA ""
         STATUS ON
         TEMPLATE void
         CLASS
                 NAME "img"
         END
END



#
#LAYER
#       NAME points
#       TYPE point
#       DATA ""
#       STATUS ON
#       TEMPLATE void
#       CLASS
#               NAME "dots"
#               SIZE 5
#               COLOR 255 0 0
#               SYMBOL 'circle'
#       END
#END

END # Map File


My map object declaration line is simple, just this:
my $map = new mapObj('/home/httpd/html/map/yield.map') or die("Unable to 
open mapfile. $!");

This is the error: Unable to open mapfile. Permission denied

Any ideas?

BTW, thanks to those of you who helped with my dynamic class creation 
problem.  The error turned out to be a silly mistake regarding a 
double-quote that should have been a single-quote.

Nick Petersen-Bergeron
Developer

ZedX Inc.
369 Rolling Ridge Drive
Bellefonte, PA. 16823




More information about the MapServer-users mailing list