[Tilecache] missing tilecache.py? (definitley missing something;
-)
Linda Rawson
linda.rawson at gmail.com
Thu Dec 13 17:58:57 EST 2007
I just got this running in a similar environment a week or two ago using
ms4w version of everything except python.
In httpd.conf
LoadModule python_module modules/mod_python.so
<Directory "/ms4w/Apache/htdocs/tilecache/">
AddHandler python-program .py
PythonHandler TileCache/Service
PythonOption TileCacheConfig "/ms4w/Apache/htdocs/tilecache/tilecache.cfg"
PythonPath "['C:\ms4w\Apache\htdocs\tilecache'] + sys.path"
PythonDebug On
</Directory>
PassEnv PYTHONPATH
SetEnv PYTHONUNBUFFERED 1
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\.
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.
Linda
On Dec 13, 2007 3:35 PM, Christopher Schmidt <crschmidt at metacarta.com>
wrote:
> On Thu, Dec 13, 2007 at 02:23:58PM -0800, Paul McCullough wrote:
> > Now I want to switch to mod_python.
> >
> > My env is:
> > geoserver 1.5.4 (not relavant for this discussion?)
>
> Correct.
>
> > I have downloaded and installed mod_python-
> 3.3.1.win32-py2.5-Apache2.2.exe
> > I have removed all of my previous CGI configs from httpd.conf
> > I have added this dir entry to httpd.conf:
> > <Directory "C:\Program Files\Apache Software
> > Foundation\Apache2.2\cgi-bin\tilecache-1.9">
> > AddHandler python-program .py
> > PythonHandler TileCache.Service
> > PythonOption TileCacheConfig "C:\Program Files\Apache Software
> > Foundation\Apache2.2\cgi-bin\tilecache-1.9\tilecache.cfg"
> > </Directory>
>
> Try this in some directory that isn't in cgi-bin, since that path is
> usually a ScriptAlias directory, which makes it special.
>
> > Thje first line of my tileCache.cgi is (irrelavant under mod_python? or
> is
> > it?)
> > #!C:/Python25/python.exe -u
>
> Irrelevant under mod_python.
>
> > I am puzzled.
> > Where is tilecache.py?
>
> There is no such file. my_anything.py will work in the directory you
> properly configure -- I don't know quite sure what's missing yet, but
> the first step is to try something that isn't inside cgi-bin.
>
> -- Chris
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20071213/b7ec79ab/attachment.html
More information about the Tilecache
mailing list