[mapserver-users] install issues
Chris h
chris123 at magma.ca
Sat Nov 22 13:17:50 PST 2008
Greets:
Installing and testing mapserver with postgres intregration and I get the
following errors when accessing the system with either one of the following
two urls:
http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms
or
http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map
error# msLoadMap(): Unable to access file. (world.map)
The particulars are as follows:
=================================
following these instructions from
http://quovadis.dk/index.cgi/i_can_has_gis:2007-10-20:geo,linux,server,ubuntu
mapserver was build with the following variables:
#MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -O2 -fPIC -Wall
C++ compiler: g++ -O2 -fPIC -Wall
Debug: -DNEED_NONBLOCKING_STDERR
Generic NINT:
Threading support: -DUSE_THREAD
-------------- Renderer Settings ---------
zlib support: -DUSE_ZLIB
png support:
jpeg support:
iconv support: -DUSE_ICONV
AGG support: -DUSE_AGG
AGG Freetype support: -laggfontfreetype
Ming(flash) support:
PDFLib support:
-------------- Data Format Drivers -------
native tiff support: -DUSE_TIFF
PostGIS support: -DUSE_POSTGIS
Proj.4 support: -DUSE_PROJ
EPPL7 support:
ArcSDE support:
OGR support: -DUSE_OGR
GDAL support: -DUSE_GDAL
GEOS support: -DUSE_GEOS
Oracle Spatial support:
FastCGI support:
-------------- OGC Services --------------
WMS Server: -DUSE_WMS_SVR
WMS Client: -DUSE_WMS_LYR
WFS Server: -DUSE_WFS_SVR
WFS Client: -DUSE_WMS_LYR
WCS Server: -DUSE_WCS_SVR
SOS Server:
-------------- MapScript -----------------
PHP MapScript: no
Tested on localhost and it responds fine
http://localhost/cgi-bin/mapserv
output: No query information to decode. QUERY_STRING is set, but empty.
Intgrating postgres/post-gis support I followed these instructions
http://www.duif.net/postgis/
and installed the world.shp file. Tested it with qgis and it works fine
given the necessary credentials: dbase name, user, password
Using postgres 8.2 and postgresql.conf connection string set to
listen_address = "*"
pg_hba.conf is
--------------------------------
# Database administrative login by UNIX sockets
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all ident sameuser
-------------------------------
The sample mapfile reads
-------------------------------
map
size 500 250
imagetype png
imagecolor 0 0 255
extent -180 -90 180 90
projection
"init=epsg:4326"
end
debug on
web
imagepath "/tmp/"
imageurl "/tmp/"
TEMPLATE "empty.html"
metadata
wms_title "WORLD"
wms_srs "EPSG:4326"
end
end
outputformat
name "png256"
driver "GD/PNG"
imagemode "pc256"
extension "png"
end
outputformat
name "png"
driver "GD/PNG"
imagemode "rgba"
extension "png"
mimetype "image/png"
imagemode RGBA
end
outputformat
name "jpg"
driver "GD/JPEG"
extension "jpg"
formatoption "QUALITY=85"
end
layer
name 'world'
metadata
"wms_title" "postgis world"
"wms_srs" "epsg:4326"
end
status default
template "dummy"
connectiontype postgis
connection "host=localhost dbname=**** password=**** user=****"
data 'the_geom from mygisdb using unique gid using srid=4326'
type polygon
class
color 255 0 0
outlinecolor 192 192 192
end
end
end
------------------------eof----------------
Now when I access the system by means of the following URL's I get the
respective errors:
http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms
or
http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map
msLoadMap(): Unable to access file. (world.map)
Im not sure but I think this is a postgres permission issue or something along
those line.
Any ideas?
Best regards and thanks for any insights.
--
/ch
More information about the MapServer-users
mailing list