[Tilecache] Re solutions issues
Yves Moisan
yves.moisan at boreal-is.com
Fri Nov 21 09:43:26 EST 2008
> compared to mod_python which has a fairly fire-and-forget install
> under apache.
Well not under windows ... First thing I did is try to install
mod_python 3.3.1 (currently the latest mod_python) for Python 2.4 and
Apache 2.0.x. Apache wouldn't start. Logs were not obvious. Anyway I
came across a post that mentioned TC didn't work with 3.3.x so I went
and installed the latest 3.2 (3.2.7). Now Apache works.
Following the TC readme file, I add the required bits in httpd.conf :
<Directory "...apache2php521/tilecache-2.03/">
AddHandler python-program .py
PythonHandler TileCache.Service
PythonOption TileCacheConfig
".../apache2php521/tilecache-2.03/tilecache.cfg"
</Directory>
Ellipsis for short.
Then I change tilecache.cgi for tilecache.py in my html file :
var Ikonos_TC = new OpenLayers.Layer.WMS(
"Ikonos",
"http://" + SERVER_BASE_URL +
":8292/tilecache/tilecache.py?map=.../mymapfile.map",
{layers: 'Ikonos',
transparent: false,
singleTile: false,
srs: 'EPSG:29194',
format: 'image/jpeg'},
{isBaseLayer: true,
buffer:0,
transitionEffect:'resize'});
I get pink tiles. Pasting the address of one in a new tab, I get :
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator ...
________________________________________________________________________
Apache/2.0.54 (Win32) mod_python/3.2.7 Python/2.4.4 PHP/5.2.1
Apache log says :
[Fri Nov 21 09:16:16 2008] [error] make_obcallback: could not import
mod_python.apache.\n
[Fri Nov 21 09:16:16 2008] [error] python_handler: no interpreter
callback found.
[Fri Nov 21 09:16:16 2008] [error] [client 192.168.5.186]
python_handler: Can't get/create interpreter., referer: ...
I installed mod_python as per instructions so I'm clueless as to what to
do next. Tilecache.cgi worksbut .py doesn't. Or do I have to move all
the TC code in htdocs ?
TIA,
YVes
More information about the Tilecache
mailing list