[Tilecache] setup tilecache under apache/linux...

Christopher Schmidt crschmidt at metacarta.com
Thu Sep 6 15:05:48 EDT 2007


On Thu, Sep 06, 2007 at 11:37:41AM -0700, John Cole wrote:
> 
> Ok, figuring that tilecache should perform better under linux/apache over
> windows/iis, I'm trying to get it running, and have found that my
> linux/apache skills have deteriorated greatly.

It's actually the switch to mod_python that's going to benefit you the
most: but starting with CGI is a good first step.

> Just using the basic layer in a default cfg, I can get the stand alone
> server to work, but my apache cgi is returning the following error:

Do you have the TileCache directory under
/var/www/cgi-bin/tilecache/TileCache/ ? It looks like it's not. If it
is, add these two lines immediately before the 'import' line that
already exists:

import sys
sys.path.append(".")

And see if that fixes things.

> [Thu Sep 06 12:58:42 2007] [error] [client 127.0.0.1] Traceback (most recent
> call last):
> [Thu Sep 06 12:58:42 2007] [error] [client 127.0.0.1]   File
> "/var/www/cgi-bin/tilecache/tilecache.cgi", line 3, in ?
> [Thu Sep 06 12:58:42 2007] [error] [client 127.0.0.1]     from TileCache
> import Service, cgiHandler, cfgfiles
> [Thu Sep 06 12:58:42 2007] [error] [client 127.0.0.1] ImportError: No module
> named TileCache
> [Thu Sep 06 12:58:42 2007] [error] [client 127.0.0.1] Premature end of
> script headers: tilecache.cgi
> 
> 
> Any pointers would be greatly appreciated.  I'm running 1.9-rc5 on RHEL5.
> 
> Thanks,
> 
> John
> -- 
> View this message in context: http://www.nabble.com/setup-tilecache-under-apache-linux...-tf4393961.html#a12528767
> Sent from the TileCache mailing list archive at Nabble.com.
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list