Permissions are:<br>drwxrwxr-x root geo&nbsp; cgi-bin<br>drwxr-xr-x&nbsp; me geo&nbsp; tilecache-2.01<br>-rwxr-xr-x&nbsp;&nbsp; me geo&nbsp; tilecache.cgi<br><br>If I go to the tilecache.cgi without specifying the rest of the example it appears to be functional:<br>
&quot;This XML file does not appear to have any style information associated with it. The document tree is shown below.&quot; &nbsp;&nbsp;&nbsp;  <br>&lt;Services&gt;<br>&nbsp; &lt;TileMapService version=&quot;1.0.0&quot; href=&quot;<a href="http://host/cgi-bin/tilecache-2.01/tilecache.cgi/1.0.0/">http://host/cgi-bin/tilecache-2.01/tilecache.cgi/1.0.0/</a>&quot;/&gt;<br>
&lt;/Services&gt;<br><br>It&#39;s also interesting that the 500 Internal Server Errors I get take four minutes to show, the browser just keeps waiting for a response from the host. I restarted Apache as well, here is the error_log:<br>
[Fri May 09 14:34:35 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br>[Fri May 09 14:34:35 2008] [notice] Digest: generating secret for digest authentication ...<br>[Fri May 09 14:34:35 2008] [notice] Digest: done<br>
[Fri May 09 14:34:35 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK<br>[Fri May 09 14:34:35 2008] [notice] LDAP: SSL support unavailable<br>[Fri May 09 14:34:35 2008] [notice] FastCGI: process manager initialized (pid)<br>
[Fri May 09 14:34:35 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.<br>[Fri May 09 14:34:36 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations<br>
[Fri May 09 14:39:26 2008] [error] [client] Premature end of script headers: tilecache.cgi<br>[Fri May 09 14:39:30 2008] [error] [client] Premature end of script headers: tilecache.cgi<br><br>I did notice that mod_python is running so I edited httpd.conf to use the mod_python example:<br>
&lt;Directory /var/www/cgi-bin/tilecache-2.01&gt;<br>&nbsp;&nbsp;&nbsp; AddHandler python-program .py<br>&nbsp;&nbsp;&nbsp; PythonHandler TileCache.Service<br>&nbsp;&nbsp;&nbsp; PythonOption TileCacheConfig /var/www/cgi-bin/tilecache-2.01/tilecache.cfg<br>&lt;/Directory&gt;<br>
However I still get the 500 Internal Server Error after a few minutes of waiting for the host to reply.<br>Any help is much appreciated. Thank you.<br>