[Mapserver-users] map file permission denied
Lowell Filak
lfilak at medinaco.org
Mon Oct 27 13:48:06 PST 2003
Could you add a line for a logfile in either the mapfile or the script .
The 'Permission denied' may very well pertain to the null data value for
'image' and not the mapfile itself.
Check out (if needed):
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptDebugging
HTH
Lowell
The following message was sent by Nick Petersen-Bergeron
<bergeron at zedxinc.com> on Mon, 27 Oct 2003 16:20:31 -0500.
> 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
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list