(install Centos 6.8 Minimal from cdrom or iso)
yum update service iptables stop chkconfig iptables off (disable selinux in /etc/selinux/xonfig)
yum install python-devel yum install python-setuptools yum install python-imaging yum install libjpeg\* yum install zlib\* yum install gcc yum install wget
easy_install modestmaps easy_install simplejson easy_install werkzeug easy_install uuid
wget http://tilestache.org/download/TileStache-1.49.8.tar.gz tar xfz TileStache-1.49.8.tar.gz
cd TileStache-1.49.8 python setup.py install
make simple /etc/tilestache.cfg file
{ "cache": { "name": "Disk", "path": "/tmp/stache", "umask": "0000" }, "layers": { "osm": { "provider": {"name": "proxy", "provider": "OPENSTREETMAP"} } } }
NB: For a persistent cache, you may consider using a different location instead of /tmp, for instance /var/tilestache
cd Tilestache-1.49.8/scripts ./tilestache-server.py -c /etc/tilestache.cfg -i 0.0.0.0
Browse: http://192.168.1.124:8080/osm/preview.html
yum install httpd yum install mod_wsgi mkdir /var/www/wsgi
create /var/www/wsgi/tilestache.wsgi
import os, TileStache application = TileStache.WSGITileServer('/etc/tilestache.cfg')
edit /etc/httpd/conf/httpd.conf (right after ScriptAlias /cgi-bin)
WSGIScriptAlias /tilestache /var/www/wsgi/tilestache.wsgi
service httpd restart
Browse:
http://192.168.1.124/tilestache/osm/0/0/0.png
http://192.168.1.124/tilestache/osm/preview.html