<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the thoughts :)<br>
<br>
I had checked the error_log - all I'm getting is the unfortunately
nondescript<br>
"Premature end of script headers: tilecache.cgi"<br>
<br>
I tried adding <br>
<pre wrap="">import cgitb; cgitb.enable()</pre>
and even a modified version<br>
<tt><br>
import cgitb; cgitb.enable(1,'/var/log/')</tt><br>
<br>
to try and get something (thanks for that link)<br>
<br>
But there is still no change - I just get a 500 error via browser and
nothing but the same error_log message.<br>
<br>
Any other ideas?<br>
<br>
In case it helps:<br>
This is a FC3 machine with Python 2.3 and Apache 2.x.x<br>
I have another server that works fine with the same Python/Apache combo
(different OS though)<br>
<br>
Fredrik Lundh wrote:
<blockquote
cite="mid:368a5cd50805051109x16537b39xc15c6940f67cbc22@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap=""> I hope someone with more python experience then I might be able to shed some
like on this:
I have tilecache successfully running as a CGI on about 3 servers (Linux) on
the latest attempt I'm getting an error I've never seen before. Through
apache I just get a 500 server error
</pre>
</blockquote>
<pre wrap=""><!---->
with a little luck, the exact error will be logged to an error log
(usally called error_log or something similar).
if that doesn't help, try adding
import cgitb; cgitb.enable()
to the top of the CGI script, and load up the problematic URL with a
web browser.
for more on this module, see:
<a class="moz-txt-link-freetext" href="http://docs.python.org/lib/module-cgitb.html">http://docs.python.org/lib/module-cgitb.html</a>
</pre>
<blockquote type="cite">
<pre wrap="">but here is what I get via the command line:
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> An error occurred: 'SCRIPT_NAME'
File "/httpdocs/TileCache/Service.py", line 262, in cgiHandler
host += os.environ["SCRIPT_NAME"]
File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
def __getitem__(self, key): return self.data[key]
</pre>
</blockquote>
<pre wrap=""><!---->
that's the expected behaviour -- there's no CGI context available when
you run the cgi script from the command line.
</F>
_______________________________________________
Tilecache mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/tilecache">http://openlayers.org/mailman/listinfo/tilecache</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div
style="border-top: 4px solid rgb(204, 204, 204); padding: 0.5em 0pt 0.5em 0.5em; background: rgb(238, 238, 238) none repeat scroll 0%; font-family: sans-serif; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; margin-top: 1em;">
<div
style="margin: 0pt 1em; float: right; text-align: right; font-size: 75%;"><span
style="font-size: 75%;">skype</span> pawprint_net
<br>
<span style="font-size: 75%;">telephone</span> 604.885.7449
<br>
<span style="font-size: 75%;">toll-free</span> 1.888.493.2360
</div>
<div style="font-size: 125%; font-weight: bold;">Scott W. Baker <span
style="font-size: 75%; font-weight: normal;">B.A.Sc</span></div>
<div><strong>President</strong>, <a href="http://www.pawprint.net/">PawPrint.net</a></div>
</div>
</div>
</body>
</html>