{"id":193,"date":"2007-02-07T10:53:06","date_gmt":"2007-02-07T15:53:06","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=193"},"modified":"2007-02-07T10:53:06","modified_gmt":"2007-02-07T15:53:06","slug":"tilecache-under-windows-it-just-works-tm","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/193\/tilecache-under-windows-it-just-works-tm\/","title":{"rendered":"TileCache Under Windows&#8230; It Just Works &#8482;"},"content":{"rendered":"<p>It&#8217;s cool when software works.<\/p>\n<p>So, I needed to test the latest TileCache in Windows. I&#8217;ve got a relatively clean Windows laptop I keep around for this. None of the niceties that I would typically want on a machine I used full time &#8212; no Firefox, no cygwin, no vim, etc. Just a straight up Windows install, with things like Google Earth installed.<\/p>\n<p>So, starting from that, I started by downloading Apache from the <a href=\"http:\/\/httpd.apache.org\/download.cgi\">Apache Download Page<\/a>. I downloaded &#8220;Win32 Binary (MSI Installer):  <a href=\"http:\/\/apache.mirrors.tds.net\/httpd\/binaries\/win32\/apache_2.2.4-win32-x86-no_ssl.msi\">apache_2.2.4-win32-x86-no_ssl.msi<\/a>&#8220;, and ran the installer directly. This got http:\/\/localhost\/ serving a page that says &#8220;It works!&#8221;.<\/p>\n<p>Next, I downloaded the <a class=\"reference\" href=\"http:\/\/www.python.org\/ftp\/python\/2.5\/python-2.5.msi\">Python 2.5 Windows installer<\/a> , and again selected all the defaults.<\/p>\n<p>Next, I downloaded TileCache 1.4, as a <a href=\"http:\/\/labs.metacarta.com\/wms-c\/tilecache-1.4.zip\">.zip file<\/a>, since I know how well Windows supports .tar.gz files. I extracted the zip file into C:\\Program Files\\Apache Software Foundation\\Apache2.2\\cgi-bin.<\/p>\n<p>Lastly, I edited  C:\\Program Files\\Apache Software Foundation\\Apache2.2\\cgi-bin\\tilecache-1.4\\tilecache.cgi so that the first line of the file read &#8220;#!C:\/Python25\/python.exe -u&#8221;, and visited http:\/\/localhost\/cgi-bin\/tilecache-1.4\/tilecache.cgi\/1.0.0\/basic\/0\/0\/0.png &#8230;<\/p>\n<p>And it worked! I got an image. I never expected setting up Apache, Python, and TileCache to just&#8230; well&#8230; work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s cool when software works. So, I needed to test the latest TileCache in Windows. I&#8217;ve got a relatively clean Windows laptop I keep around for this. None of the niceties that I would typically want on a machine I used full time &#8212; no Firefox, no cygwin, no vim, etc. Just a straight up [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57,12,58],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-apache","category-python","category-tilecache"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}