[FeatureServer] FeatureServer installation on linux
Gery .
gamejihou at hotmail.com
Tue Nov 20 02:30:10 PST 2012
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/20121120/00899318/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 330286 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/featureserver/attachments/20121120/00899318/attachment-0001.png>
More information about the FeatureServer
mailing list