Hi
It looks like the python script is not interpreted, probably because of
a misconfiguration in your web server. Could you send more details?
Are you using Apache/mod_pyhton? Apache/CGI? Please send relevant parts
of your configuration.
Regards,
Gilles
Neuba danho wrote:
Hi every body,
we use http//localhost/ogcserver in my bowser, it did not return the
hoped tile but the content of the script like that.
#!/usr/bin/python2.5
#
# This file is part of Mapnik (c++ mapping toolkit)
#
# Copyright (C) 2006 Jean-Francois Doyon
#
# Mapnik is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General
Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# $Id: ogcserver 342 2006-10-17 17:26:35Z pavlenko $
from mapnik.ogcserver.cgiserver import Handler
from jon import fcgi
class OGCServerHandler(Handler):
configpath = '/etc/ogcserver.conf'
fcgi.Server({fcgi.FCGI_RESPONDER: OGCServerHandler}).run()
and this is the content of apache error_log
[Fri Nov 14 11:25:23 2008] [notice] Apache/2.2.9 (Unix) DAV/2 mod_python/3.3.1
Python/2.5.1 mod_wsgi/2.1-BRANCH configured -- resuming normal operations
[Fri Nov 14 11:33:30 2008] [notice] caught SIGTERM, shutting down
[Fri Nov 14 11:58:54 2008] [notice] SELinux policy enabled; httpd running as
context
unconfined_u:system_r:httpd_t:s0
[Fri Nov 14 11:58:54 2008] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Fri Nov 14 11:58:54 2008] [warn] module python_module is already loaded,
skipping
[Fri Nov 14 11:58:54 2008] [notice] Digest: generating secret for digest
authentication ...
[Fri Nov 14 11:58:54 2008] [notice] Digest: done
[Fri Nov 14 11:58:54 2008] [notice] mod_python: Creating 4 session mutexes
based on 256 max processes and 0 max threads.
[Fri Nov 14 11:58:54 2008] [notice] mod_python: using mutex_directory /tmp
[Fri Nov 14 11:58:54 2008] [notice] Apache/2.2.9 (Unix) DAV/2 mod_python/3.3.1 Python/2.5.1 mod_wsgi/2.1-BRANCH configured -- resuming normal operations
[Fri Nov 14 11:59:12 2008] [error] [client 127.0.0.1] Directory index forbidden
by Options directive: /var/www/html/
[Fri Nov 14 11:59:15 2008] [error] [client 127.0.0.1] File does not exist:
/var/www/html/favicon.ico
Neuba Danho Fursy Rodelec
Université d'Abobo-Adjamé
01 BP 4403 Abidjan 01
------------------------------------------------------------------------
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users
--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75002 PARIS
+33 (0) 1 44 82 00 80
http://www.makina-corpus.com
begin:vcard
fn;quoted-printable:Gilles Bassi=C3=A8re
n;quoted-printable:Bassi=C3=A8re;Gilles
org:Makina Corpus;GIS
adr;quoted-printable:;;30 rue des Je=C3=BBneurs;Paris;;FR-75011;France
email;internet:[EMAIL PROTECTED]
title:Web GIS developper
tel;work:+33 (0) 1 44 82 00 80
x-mozilla-html:FALSE
url:http://www.makina-corpus.com
version:2.1
end:vcard
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users