[FeatureServer] FW: Featureserver installation issues

Gery . gamejihou at hotmail.com
Wed Nov 21 02:03:39 PST 2012


I found the problem, I had the /usr/bin/python running as default, and this one comes from the good python-2.4.rpm (the one that comes with rhel). Because I upgrade that version to the rpm 2.6 (using yum), I needed to replace the old "python" and use instead the python2.6 as python in /usr/bin. So I rechecked dependencies with pip, all is there, and using the new python, I get with "http://www.mop.org/fs/featureserver.cgi"

The following layers are available:
 * polygon, http://www.mop.org/fs/featureserver.cgi/polygon
 * sqlite_pois, http://www.mop.org/fs/featureserver.cgi/sqlite_pois
 * pois, http://www.mop.org/fs/featureserver.cgi/pois
 * lines, http://www.mop.org/fs/featureserver.cgi/lines
 * wfs_t_poi, http://www.mop.org/fs/featureserver.cgi/wfs_t_poi
 * points, http://www.mop.org/fs/featureserver.cgi/points
 * wfs_t_poly, http://www.mop.org/fs/featureserver.cgi/wfs_t_poly
 * scribble, http://www.mop.org/fs/featureserver.cgi/scribble
so I think this is now working because the scribble link gives:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
      <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net//wfs/1.0.0/WFS-basic.xsd">
        
</wfs:FeatureCollection>

So, now it works (I think =D )

Sorry for the noise,

Cheers,

Gery
__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist.


From: gamejihou at hotmail.com
To: featureserver at lists.osgeo.org
Subject: Featureserver installation issues
Date: Tue, 20 Nov 2012 16:16:55 +0000





Hello,

After
 a while I've been trying to get FS working but without success. I'm 
using python2.6 in rhel 64-bits and Cheetah, simplejson and psycopg2 
were installed successfully with pip. My apache is httpd-2.2.3-43 (rpm) 
and my httpd.conf contains:

**********************************************************
#localhost
<VirtualHost *:80>
    DocumentRoot /var/www/html
    ServerName localhost:80
</VirtualHost>

# www.mop.org
<VirtualHost *:80>
    DocumentRoot /var/www/html/mop
    ServerName www.mop.org

#####    # FeatureServer with CGI
#    Alias /fs /var/www/html/mop/fs/featureserver.cgi
    <Directory /var/www/html/mop/fs>
        AddHandler cgi-script .cgi
        Options +ExecCGI
        Order allow,deny
        Allow from all
        AllowOverride All
    </Directory>

    ErrorLog /var/www/html/mop/logs/fs_error.log
    LogLevel warn
    CustomLog /var/www/html/mop/logs/fs_access.log combined
    ServerSignature On

</VirtualHost>
**********************************************************

I added to featureserver.cfg:
[scribble]
type=DBM
file=/tmp/featureserver.scribble
gaping_security_hole=yesso when I try: http://www.mop.org/fs/featureserver.cgi, 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,
 root at localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.

More information about this error may be available
in the server error log.


Apache/2.2.3 (Red Hat) Server at www.mop.org Port 80
my fs_error.log says:

[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] Traceback (most recent call last):
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]   File "/var/www/html/mop/fs/featureserver.cgi", line 5, in ?
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]     from FeatureServer.Server import Server, cfgfiles, cgi
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]   File "/var/www/html/mop/fs/FeatureServer/Server.py", line 250
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]     except InvalidValueException as e:
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]                                   ^
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] SyntaxError: invalid syntax
[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] Premature end of script headers: featureserver.cgi

what does that mean?, however, when I try: http://www.mop.org/fs, I get the attached PNG.

Any help is appreciated,

Best regards,

Gery


__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist.
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/featureserver/attachments/20121121/9d4aa9f4/attachment.html>


More information about the FeatureServer mailing list