[OSM-dev] help with mod_tile

Jon Burgess jburgess777 at googlemail.com
Sun Oct 19 20:25:12 BST 2008


On Sun, 2008-10-19 at 14:00 -0400, Ryan Case wrote:
> Thanks Jon.
> 
> Seems to be closer to working now:
> 
> Running ./renderd shows:
> 
> Rendering daemon
> registered datasource : shape
> registered datasource : postgis
> registered datasource : raster
> ENCODING = utf8
> 
> followed by the mapnik rule output (from osm.xml it appears).
> 
> Hitting http://localhost/osm_tiles2/0/0/0.png in the browser shows:
> 
> Got incoming connection, fd 8, number 2
> Render fd(8) z(0), x(0), y(0)
> ...
> (more output on layer processing)
> ...
> DONE TILE 0 0-0 0-0
> Produced .meta: /var/www/direct/0/0/0/0/0/0.meta
> 
> but I get a 404 error in the browser.
> 
> The .meta file is indeed in /var/www/direct/0/0/0/0/0/.

OK, good. You are nearly there.

> Any ideas on why the PNG isn't showing up in the browser?

Are you certain that /var/www/direct is correct, on my system I
use /var/www/html/direct.

Does the user running the web server have read access to
the /var/www/direct/0/0/0/0/0/ directories? Find out which user runs the
apache process (normally apache, www-data or nobody) then try accessing
the file as this user, e.g.

# sudo -u apache ls -l /var/www/direct/0/0/0/0/0/

  Jon






More information about the dev mailing list