NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi I followed the following tutorial: to set up a tile-server on my ubuntu machine.

It seems to work the same as how the tutorial says it should i.e. If I navigate to http://localhost/osm_tiles2/0/0/0.png I get a image of the world.

One of my questions is where is the folder: osm_tiles2? I have run numerous searches but can't find it anywhere. I am not sure where apache2 goes to when I type localhost.

Another question is where do I go from here to get the map data stored in the PostGIS database to load instead of the picture of the world? The tutorial loads the whole planet OSM into a PostGIS DB and I decided to load just a single city however only the small png of the world displays.


asked 27 Oct '12, 16:02

srose's gravatar image

accept rate: 0%

"osm_tiles2" is defined in /usr/local/etc/renderd.conf:


The "osm_tiles2" folder doesn't actually exist. The tiles aren't stored as .png files on disk - they're stored as metatiles below "/var/lib/mod_tile/default".

If you actually want to generate some real tiles you can do so with "" (in the mapnik-style folder).

If you've followed the instructions you'll already have your imported data in the database. If you want to quickly check that the city that you've imported is in there, navigate to it on the main OSM site, zoom in quite a lot, and right click and select "view image". You'll get a URL like:

Change that to the equivalent one on your tile server:


and (after a short time rendering) you should see part of your imported city.

On the switch2osm site there's also a "serving tiles" section that allows you to set up a slippymap like the main OSM site.

permanent link

answered 27 Oct '12, 17:22

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 27 Oct '12, 16:02

question was seen: 10,252 times

last updated: 27 Oct '12, 17:22

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum