Documentation for migration of WMS to newer version of Mapserver.
We keep these scripts in a GitHub repository so they can easily be deployed and run on any apache servers. The scripts are a collection of utilities.
We are migrating an existing Web Map Service (WMS) to a different server. The existing services uses Apache, Postgres, Postgis (psql extention), and Mapserver. The new version of the server has an updated version of both Mapserver and Postgres installed. Between the major versions of Mapserver some of the syntax from the existing Mapfiles is now deprecated.
- migrate psql database to wellmapsrvdev02
- migrate map files
- update deprecated syntax for each mapfile
- verify each map file loads correctly via WMS
- redirect silverstripe WMS urls
- bug_count - Count the number of bugs in all the mapfiles. This is based of a grep of problematic syntax from deprecated versions of mapfile.
- bug_find - Similar to bug_count, instead is shows the filename and line numbers for each of the deprecated syntax.
- setup - Creates the template1 databade and drops a series of databases and recreates them. It prepares our psql for a pg_dumpall command
- dump - Dumps all of the databases from a one server to another. All of the databases must exist on the new server before executing this command