<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mobile and gis dev notes &#187; mod_python</title>
	<atom:link href="http:///wordpress/tag/mod_python/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Wed, 08 Feb 2012 22:26:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TileCache for Windows Revisited</title>
		<link>/wordpress/2007/01/tilecache13/</link>
		<comments>/wordpress/2007/01/tilecache13/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 03:50:27 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[tilecache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_python]]></category>

		<guid isPermaLink="false">/wordpress/?p=22</guid>
		<description><![CDATA[1. Downloaded TileCache1.8 from http://www.tilecache.org/ 2. Get the current releases of python and mod_python. http://www.python.org/download/releases/2.5/ http://httpd.apache.org/modules/python-download.cgi -&#62; click on win32 binaries. Get the mod_python-3.3.1.win32-py2.5-Apache2.2.exe if your Apache is running on 2.2. http://www.pythonware.com/products/pil/ http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe 3. Install python2.5 4. Install mod_python and python_imaging. 5. Edit httpd.conf LoadModule python_module modules/mod_python.so &#160; &#60;directory&#62; AddHandler python-program .py PythonHandler test PythonDebug [...]]]></description>
			<content:encoded><![CDATA[<p>1. Downloaded TileCache1.8 from <a href="http://www.tilecache.org/">http://www.tilecache.org/</a></p>
<p>2. Get the current releases of python and mod_python.<br />
<a href="http://www.python.org/download/releases/2.5/">http://www.python.org/download/releases/2.5/</a></p>
<p><a href="http://httpd.apache.org/modules/python-download.cgi">http://httpd.apache.org/modules/python-download.cgi</a> -&gt; click on win32 binaries. Get the mod_python-3.3.1.win32-py2.5-Apache2.2.exe  if your Apache is running on 2.2.</p>
<p><a href="http://www.pythonware.com/products/pil/">http://www.pythonware.com/products/pil/</a></p>
<p>http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe</p>
<p>3. Install python2.5</p>
<p>4. Install mod_python and python_imaging.</p>
<p>5. Edit httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">LoadModule python_module modules<span style="color: #000000; font-weight: bold;">/</span>mod_python.so
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler python-program .py
PythonHandler <span style="color: #7a0874; font-weight: bold;">test</span>
PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
	AddHandler python-program .py .cgi
	PythonHandler TileCache.Service
	PythonOption TileCacheConfig <span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>tilecache<span style="color: #000000; font-weight: bold;">/</span>tilecache.cfg
	PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
ScriptInterpreterSource Registry
SetEnv PYTHONUNBUFFERED <span style="color: #000000;">1</span>
PassEnv PYTHONPATH</pre></div></div>

<p>6. run regedit. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.4\PythonPath. Append &#8220;E:\wwwroot\tilecache&#8221; to PYTHONPATH</p>
<p>D:\Python24\Lib;D:\Python24\DLLs;D:\Python24\Lib\lib-tk;E:\wwwroot\tilecache;</p>
<p>7. Put D:\Python24 in your WINDOWS PATH</p>
<p>8. Test if apache could read python by http://127.0.0.1/pytest/test.py</p>
<p>9. http://127.0.0.1/tilecache/test1.cfm</p>
<p>10. tilecache_seed.py &#8220;http://127.0.0.1/tilecache/tilecache.py&#8221; roads 12 17 &#8220;116.28229,39.85291,116.48657,39.98783&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/01/tilecache13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

