[mapserver-users] Permission settings on htdcos

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Jun 27 10:11:00 PDT 2014


The tmp folder should be owned and writable by the user the webserver is running as. You don't need to change permissions on document root, just the tmp directory. Most uses of MapServer don't require a temporary directory at all - I believe only mode=browse and saving queries use that directory. So if you just want to see a map in the browser use

  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=map

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefanos Anastasiou
Sent: Friday, June 27, 2014 8:30 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Permission settings on htdcos

Hello list..!

I'm just trying to load a simple shapefile in the browser. Both mapfile and template are located in /home/mapdata. When I try to browse:  127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=browse I get the error that says:  "msSaveImage(): Unable to access file. Failed to create output file".

I presume that it has to do with the permission settings in tmp folder in htdcocs. As far as I know it's not a good idea giving permission 666 or 777 to htdocs.  So should I handle this ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140627/b6dcdb3c/attachment.htm>


More information about the MapServer-users mailing list