Ok, looking at your config, you don't have any cgi or fastcgi handler  
for the URL http://localhost/ogcserver. If you receive the python file  
when you call this URL, it probably means that you saved the ogcserver  
script in /var/www/html (your DocumentRoot). Consequently, it is  
served as a plain text file. If you want it to be interpreted, you  
need to defined an handler (either fastcgi or cgi) for this script,  
that is the role of your scriptalias/directory directives.

Your scriptalias is named /mapnik/ and is defined to  
/var/www/cgi-bin/, this means that your ogcserver script should be in  
/var/www/cgi-bin and you may call it with an URL beginning with  
http://localhost/mapnik/. For example, if your saved your ogcserver  
file as /var/www/cgi-bin/ogcserver, then you should be able to call it  
with http://localhost/mapnik/ogcserver.

Regards,
Gilles

> ScriptAlias /mapnik/ /var/www/cgi-bin/
> <Directory "/var/www/cgi-bin/">
>            AllowOverride All
>            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>            Order allow,deny
>            Allow from all
>            SetHandler fastcgi-script
> </Directory>
>
>
>
> Neuba Danho Fursy Rodelec
> Université d'Abobo-Adjamé
> 01 BP 4403 Abidjan 01
>
>
>
>
> ________________________________
> De : Gilles Bassière <[EMAIL PROTECTED]>
> À : Neuba danho <[EMAIL PROTECTED]>
> Cc : [email protected]
> Envoyé le : Vendredi, 14 Novembre 2008, 12h52mn 12s
> Objet : Re: [Mapnik-users] problem with ogcserver
>
> 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
>
>
>



_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to