<font face="times new roman,serif">Fixed the problem, however it could be due to any number of the following changes I've made:</font><div><font face="'times new roman', serif"><br></font></div>
<div><font face="'times new roman', serif">1. Installed the Visual C++ 2010 SP1Redistributable Package: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=8328" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=8328</a> (restart the machine!)</font></div>
<div><font face="'times new roman', serif">2. Modified the httpd.conf file slightly:</font></div><div><font face="'times new roman', serif"><br></font></div><div><font face="'times new roman', serif"><div>
<Directory "/ms4w/Apache/cgi-bin/TileCache/"></div><div> AddHandler cgi-script .cgi</div><div> AddHandler python-program .py</div><div> Options +ExecCGI</div><div> AddHandler python-program .py</div>
<div> PythonHandler TileCache.Service</div><div> PythonOption TileCacheConfig "/ms4w/Apache/cgi-bin/TileCache/tilecache.cfg"</div><div> PythonPath "['C:/ms4w/Apache/cgi-bin/TileCache'] + sys.path"</div>
<div> PythonDebug On</div><div> AllowOverride None</div><div> Order allow,deny</div><div> Allow from all</div><div></Directory></div></font><div><div><p></p><p></p><p><font face="times new roman, serif"><b><font color="#00b050"><font size="4">Michael Markieta</font><br>
</font></b><span style="color:rgb(89,89,89);font-size:10pt">GIS Consultant</span></font></p><p><font face="times new roman, serif"><span style="color:rgb(89,89,89);font-size:10pt">5 Royal Street<br></span><span style="color:rgb(89,89,89);font-size:10pt">Toronto Ontario Canada M6N3Z3<br>
</span><b><span lang="FR-CA" style="font-size:10pt;color:rgb(89,89,89)">c </span></b><span lang="FR-CA" style="font-size:10pt;color:rgb(89,89,89)"><a href="tel:416%20833%205581" value="+14168335581" target="_blank">416 833 5581</a> </span><b><span style="font-size:10pt;color:rgb(89,89,89)">d</span></b><span style="font-size:10pt;color:rgb(89,89,89)"> <a href="tel:416%20604%209647" value="+14166049647" target="_blank">416 604 9647</a><br>
</span></font><font face="times new roman, serif"><span style="font-size:10pt"><font color="#595959"><a href="http://www.spatialanalysis.ca/" target="_blank">www.spatialanalysis.ca</a><br></font></span><a href="http://www.linkedin.com/in/michaelmarkieta" style="font-size:10pt" target="_blank"><span style="color:rgb(0,176,80)">Find me on LinkedIn</span></a></font></p>
<p></p><p></p></div>
<br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 11:27 PM, Michael Markieta <span dir="ltr"><<a href="mailto:markieta.m@gmail.com" target="_blank">markieta.m@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="times new roman,serif"><font face="arial,helvetica,sans-serif">Hi list,<br><br>I have a working TileCache cgi here: <a href="http://128.100.66.64/cgi-bin/tilecache/tilecache.cgi/1.0.0" target="_blank">http://128.100.66.64/cgi-bin/tilecache/tilecache.cgi/1.0.0</a><br>
<br>but I am unable to run under mod_python: <a href="http://128.100.66.64/cgi-bin/tilecache/tilecache.py/1.0.0" target="_blank">http://128.100.66.64/cgi-bin/tilecache/tilecache.py/1.0.0</a><br><br><span style="font-family:courier new,monospace"><font><b>httpd.conf<br>
</b>...<br>LoadModule python_module modules/mod_python.so<br>...<br><Directory "/ms4w/Apache/cgi-bin/TileCache/"></font></span></font></font><span style="font-family:courier new,monospace"><font><br></font></span><font face="times new roman,serif"><font face="arial,helvetica,sans-serif"><span style="font-family:courier new,monospace"><font> AddHandler cgi-script .cgi<br>
Options +ExecCGI</font></span></font></font><br><font face="times new roman,serif"><font face="arial,helvetica,sans-serif"><span style="font-family:courier new,monospace"><font><font face="times new roman,serif"><font face="arial,helvetica,sans-serif"><span style="font-family:courier new,monospace"><font> AllowOverride None</font></span></font></font><span style="font-family:courier new,monospace"><font><br>
</font></span> Order allow,deny<br> Allow from all<br> AddHandler python-program .py<br> PythonHandler TileCache.Service<br> PythonOption TileCacheConfig "/ms4w/Apache/cgi-bin/TileCache/tilecache.cfg"<br>
PythonDebug On<br></Directory></font></span><br><br>And yes, I've restarted the apache server.<br><br clear="all"></font></font><div><p></p><p></p><p><font face="times new roman, serif"><b><font color="#00b050"><font size="4">Michael Markieta</font><br>
</font></b><span style="color:rgb(89,89,89);font-size:10pt">GIS Consultant</span></font></p><p><font face="times new roman, serif"><span style="color:rgb(89,89,89);font-size:10pt">5 Royal Street<br></span><span style="color:rgb(89,89,89);font-size:10pt">Toronto Ontario Canada M6N3Z3<br>
</span><b><span style="font-size:10pt;color:rgb(89,89,89)" lang="FR-CA">c </span></b><span style="font-size:10pt;color:rgb(89,89,89)" lang="FR-CA"><a href="tel:416%20833%205581" value="+14168335581" target="_blank">416 833 5581</a> </span><b><span style="font-size:10pt;color:rgb(89,89,89)">d</span></b><span style="font-size:10pt;color:rgb(89,89,89)"> <a href="tel:416%20604%209647" value="+14166049647" target="_blank">416 604 9647</a><br>
</span></font><font face="times new roman, serif"><span style="font-size:10pt"><font color="#595959"><a href="http://www.spatialanalysis.ca/" target="_blank">www.spatialanalysis.ca</a><br></font></span><a href="http://www.linkedin.com/in/michaelmarkieta" style="font-size:10pt" target="_blank"><span style="color:rgb(0,176,80)">Find me on LinkedIn</span></a></font></p>
<p></p><p></p></div>
</blockquote></div><br></div></div>