Opened 9 months ago

Closed 7 hours ago

#2409 closed defect (fixed)

MapServer 8.0 CONFIG

Reported by: kalxas Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive16.0
Component: OSGeoLive Keywords: mapserver
Cc: osgeolive@…


MapServer 8.0 debian package is now available in our nightly ppa:

MapServer 8.0 requires to setup a CONFIG file:

The following error can be replicated in build22:

msLoadConfig(): Unable to access file.

Change history (16)

comment:2 by kalxas, 8 months ago

Copying Seth's comments from the pull request.

This pull requests includes the following:

  • points to the new updated demo (see - a new v1.2 tag was created for this)
  • adds a new CONFIG file required for MapServer 8.0. Move the current environment variables from Apache to the CONFIG file
  • adds a new ITASCA setting to the CONFIG file (so it can be used for the OGC Features API - can add some notes to the quickstart on this)
  • adds in the new php-mapscript-ng module

Note these changes haven't been tested with a full build of the OSGeoLive ISO, so there may need to be tweaks after a new beta build.


comment:3 by kalxas, 8 months ago

Priority: blockercritical

MapServer demo works again on build27

Leaving ticket open to track todo items

comment:4 by sethg, 8 months ago

I've uploaded the latest docs to using the same naming convention / structure as previously.

@kalxas do you have permissions to upload this file to ?

comment:7 by kalxas, 8 months ago

More updates regarding MapServer 8.0 configuration:

comment:8 by kalxas, 8 months ago

TODO list update:

For the last item, there was an IRC discussion on DebianGIS IRC, this will not happen upstream due to JavaScript licensing issues.

comment:9 by kalxas, 8 months ago

Priority: criticalmajor

comment:10 by sethg, 8 months ago

Thanks for the update @kalxas, I thought there might be a reason why it wasn't included. Do you have a link to the discussion? It would be good to know which JS library was an issue so that if a different template is used it can be avoided. For now the plain templates will suffice. Once the 8.0 patch release is out the final issues should be resolved.

comment:11 by darkblueb, 4 months ago

needs confirmation in Beta 0 build

comment:12 by darkblueb, 4 months ago

the contents of the link is definitely version 7 docs.

the mapserver docs on build beta1 are also version 7 docs.

comment:13 by darkblueb, 4 months ago

mapserver 8 demo Notebook shows :

# First let's get the extent of the map to use in the request
extent = map.extent

bbox = "BBOX={},{},{},{}".format(extent.minx, extent.miny, extent.maxx, extent.maxy)
querystring = "SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=lakespy2&CRS=EPSG:26915&FORMAT=image/png&WIDTH=400&HEIGHT=400&{}".format(bbox)

ows_req = mapscript.OWSRequest()

MapServerError: msWMSLoadGetMapParams(): WMS server error. Missing required parameter STYLES. Note to service administrators: defining the "wms_allow_getmap_without_styles" "true" MAP.WEB.METADATA item will disable this check (backward compatibility with behaviour of MapServer < 8.0)

comment:14 by sethg, 2 months ago

I've pushed a fix for that "Missing required parameter STYLES" error to

comment:15 by sethg, 4 days ago

Can this ticket be closed? As I understand it the CONFIG file is in place and working.

comment:16 by kalxas, 7 hours ago

Resolution: fixed
Status: newclosed

Closing, thanks!

Note: See TracTickets for help on using tickets.