<div>I just got this running in a similar environment a week or two ago using ms4w version of everything except python.</div>
<div> </div>
<div>In httpd.conf</div>
<div><font size="2">LoadModule python_module modules/mod_python.so</font></div><font size="2">
<p><Directory "/ms4w/Apache/htdocs/tilecache/"></p>
<p>AddHandler python-program .py</p>
<p>PythonHandler TileCache/Service </p>
<p>PythonOption TileCacheConfig "/ms4w/Apache/htdocs/tilecache/tilecache.cfg"</p>
<p>PythonPath "['C:\ms4w\Apache\htdocs\tilecache'] + sys.path"</p>
<p>PythonDebug On</p>
<p></Directory></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> </div>
<div></div></font>I have switched over 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. But I did get it running on my XP box first.
<div> </div>
<div>Linda</div>
<div><br><br></div>
<div class="gmail_quote">On Dec 13, 2007 3:35 PM, Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> 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>> Now I want to switch to mod_python.<br>><br>> My env is:<br></div>
<div class="Ih2E3d">> geoserver 1.5.4 (not relavant for this discussion?)<br><br></div>Correct.<br>
<div class="Ih2E3d"><br>> I have downloaded and installed mod_python-3.3.1.win32-py2.5-Apache2.2.exe<br>> I have removed all of my previous CGI configs from httpd.conf<br>> I have added this dir entry to httpd.conf
:<br>> <Directory "C:\Program Files\Apache Software<br>> Foundation\Apache2.2\cgi-bin\tilecache-1.9"><br>> AddHandler python-program .py<br>> PythonHandler TileCache.Service<br>
> PythonOption TileCacheConfig "C:\Program Files\Apache Software<br>> Foundation\Apache2.2\cgi-bin\tilecache-1.9\tilecache.cfg"<br>> </Directory><br><br></div>Try this in some directory that isn't in cgi-bin, since that path is
<br>usually a ScriptAlias directory, which makes it special.<br>
<div class="Ih2E3d"><br>> Thje first line of my tileCache.cgi is (irrelavant under mod_python? or is<br>> it?)<br>> #!C:/Python25/python.exe -u<br><br></div>Irrelevant under mod_python.<br>
<div class="Ih2E3d"><br>> I am puzzled.<br>> 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't know quite sure what's missing yet, but
<br>the first step is to try something that isn'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>