[Mapserver-users] Linux/Apache security wrt shapefiles data

Lowell Filak lfilak at medinaco.org
Wed Aug 27 13:51:54 PDT 2003


It may be that any cgi is not allowed to see outside of apache-home.
Sometimes a "ln -s /home/pkishor/gisdata /var/www/html/gisdata" does the
trick.
HTH
Lowell

The following message was sent by "pkishor_98"
<pkishor at geoanalytics.com> on Wed, 27 Aug 2003 20:26:54 -0000.

> yes. this is related to MapServer ;-).
> 
> OS: RH9
> MapServer 4.0 config-ed and setup correctly.
> 
> I have my shapefiles under "/home/pkishor/gisdata"
> 
> and the darn Mapserver refuses to open the shapefiles. Error log shows 
> 
> msSHPOpenFile(): Unable to access file. (/home/pkishor/gisdata/bio)
> ..
> 
> I move the shapefiles to "/var/www/html/gisdata" and everything works
> fine.
> 
> Apache runs as apache:apache, and in both cases I have chown-ed and
> chgrp-ed the gisdata directory to apache:apache, and also chmod-ed it
> to 777 for good measure. Why is Mapserver unable to read gisdata
> stored in my home directory? I am new to Linux/RH9, so be gentle in
> your pedagoguery ;-).
> 
> Many thanks,
> 
> Puneet.
> 
> _______________________________________________
> 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