<div>I just got this running in a similar environment a week or two ago using ms4w version of everything except python.</div>
<div>&nbsp;</div>
<div>In httpd.conf</div>
<div><font size="2">LoadModule python_module modules/mod_python.so</font></div><font size="2">
<p>&lt;Directory &quot;/ms4w/Apache/htdocs/tilecache/&quot;&gt;</p>
<p>AddHandler python-program .py</p>
<p>PythonHandler TileCache/Service </p>
<p>PythonOption TileCacheConfig &quot;/ms4w/Apache/htdocs/tilecache/tilecache.cfg&quot;</p>
<p>PythonPath &quot;[&#39;C:\ms4w\Apache\htdocs\tilecache&#39;] + sys.path&quot;</p>
<p>PythonDebug On</p>
<p>&lt;/Directory&gt;</p></font><font size="2">
<p>PassEnv PYTHONPATH</p>
<p>SetEnv PYTHONUNBUFFERED 1 </p>
<div>Plus I had to set an environment variable called PYTHONPATH which contained C:\Python25;C:\Python25\Lib\;C:\Python25\DLLs\;C:\ms4w\Apache\cgi-bin\.</div>
<div>&nbsp;</div>
<div></div></font>I have switched over&nbsp;to HostGIS where they know linux and apache like the back of their hands and they had this running in 2 seconds on that platform.&nbsp; But I did get it running on my XP box first.
<div>&nbsp;</div>
<div>Linda</div>
<div><br><br></div>
<div class="gmail_quote">On Dec 13, 2007 3:35 PM, Christopher Schmidt &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Thu, Dec 13, 2007 at 02:23:58PM -0800, Paul McCullough wrote:<br>&gt; Now I want to switch to mod_python.<br>&gt;<br>&gt; My env is:<br></div>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; geoserver 1.5.4 (not relavant for this discussion?)<br><br></div>Correct.<br>
<div class="Ih2E3d"><br>&gt; I have downloaded and installed mod_python-3.3.1.win32-py2.5-Apache2.2.exe<br>&gt; I have removed all of my previous CGI configs from httpd.conf<br>&gt; I have added this dir entry to httpd.conf
:<br>&gt; &lt;Directory &quot;C:\Program Files\Apache Software<br>&gt; Foundation\Apache2.2\cgi-bin\tilecache-1.9&quot;&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; AddHandler python-program .py<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; PythonHandler TileCache.Service<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; PythonOption TileCacheConfig &quot;C:\Program Files\Apache Software<br>&gt; Foundation\Apache2.2\cgi-bin\tilecache-1.9\tilecache.cfg&quot;<br>&gt; &lt;/Directory&gt;<br><br></div>Try this in some directory that isn&#39;t in cgi-bin, since that path is
<br>usually a ScriptAlias directory, which makes it special.<br>
<div class="Ih2E3d"><br>&gt; Thje first line of my tileCache.cgi is &nbsp;(irrelavant under mod_python? or is<br>&gt; it?)<br>&gt; &nbsp; &nbsp; #!C:/Python25/python.exe -u<br><br></div>Irrelevant under mod_python.<br>
<div class="Ih2E3d"><br>&gt; I am puzzled.<br>&gt; Where is tilecache.py?<br><br></div>There is no such file. my_anything.py will work in the directory you<br>properly configure -- I don&#39;t know quite sure what&#39;s missing yet, but
<br>the first step is to try something that isn&#39;t inside cgi-bin.<br><br>-- Chris<br>
<div>
<div></div>
<div class="Wj3C7c">_______________________________________________<br>Tilecache mailing list<br><a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">
http://openlayers.org/mailman/listinfo/tilecache</a><br></div></div></blockquote></div><br>