| 1 | = Rendering OSM data with MapServer on Ubuntu 10.10 = |
| 2 | |
| 3 | This page provides step by step instructions to setup a Ubuntu 10.10 LTS server from scratch to render OSM data with MapServer 6.x. |
| 4 | |
| 5 | The following instructions assume that we start with a brand new Ubuntu 10.10 server with Apache installed but none of the MapServer related packages installed. |
| 6 | |
| 7 | The setup will include: |
| 8 | |
| 9 | * MapServer 6.x (from the UbuntuGIS repository) |
| 10 | * PostgreSQL/PostGIS (from the UbuntuGIS repository) |
| 11 | * OSM data to be downloaded from http://download.geofabrik.de/osm/ |
| 12 | * Use of "imposm" to load the data in PostGIS: http://imposm.org/ |
| 13 | * MapFile generated using "mapserver-utils": http://code.google.com/p/mapserver-utils/ |
| 14 | * Tile caching using Mod-Geocache (to be renamed MapCache): http://mod-geocache.googlecode.com/ |
| 15 | |
| 16 | == Install UbuntuGIS MapServer and PostGIS == |
| 17 | |
| 18 | * Relevant docs: http://trac.osgeo.org/ubuntugis/wiki/UbuntuGISRepository |
| 19 | * Commands: |
| 20 | {{{ |
| 21 | sudo apt-get install python-software-properties |
| 22 | sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable |
| 23 | sudo apt-get update |
| 24 | sudo apt-get install cgi-mapserver mapserver-bin |
| 25 | |
| 26 | sudo apt-get install postgresql |
| 27 | sudo apt-get install postgis postgresql-8.4-postgis |
| 28 | }}} |