<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font style="font-size: 10pt;" face="Arial" color="#366092" size="2">Hello,<br><br>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:<br><br>**********************************************************<br>#localhost<br><VirtualHost *:80><br>    DocumentRoot /var/www/html<br>    ServerName localhost:80<br></VirtualHost><br><br># www.mop.org<br><VirtualHost *:80><br>    DocumentRoot /var/www/html/mop<br>    ServerName www.mop.org<br><br>#####    # FeatureServer with CGI<br>#    Alias /fs /var/www/html/mop/fs/featureserver.cgi<br>    <Directory /var/www/html/mop/fs><br>        AddHandler cgi-script .cgi<br>        Options +ExecCGI<br>        Order allow,deny<br>        Allow from all<br>        AllowOverride All<br>    </Directory><br><br>    ErrorLog /var/www/html/mop/logs/fs_error.log<br>    LogLevel warn<br>    CustomLog /var/www/html/mop/logs/fs_access.log combined<br>    ServerSignature On<br><br></VirtualHost><br></font><font style="font-size:10pt" face="Arial" color="#366092" size="2">**********************************************************</font><br><font style="font-size: 10pt;" face="Arial" color="#366092" size="2"><br>I added to featureserver.cfg:<br></font><pre>[scribble]
type=DBM
file=/tmp/featureserver.scribble
gaping_security_hole=yes</pre><font style="font-size: 10pt;" face="Arial" color="#366092" size="2">so when I try: http://www.mop.org/fs/featureserver.cgi, I get:<br></font><h1>Internal Server Error</h1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<BR>
Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<BR>
More information about this error may be available
in the server error log.<BR>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at www.mop.org Port 80</address><br><font style="font-size: 10pt;" face="Arial" color="#366092" size="2">my fs_error.log says:<br><br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] Traceback (most recent call last):<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]   File "/var/www/html/mop/fs/featureserver.cgi", line 5, in ?<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]     from FeatureServer.Server import Server, cfgfiles, cgi<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]   File "/var/www/html/mop/fs/FeatureServer/Server.py", line 250<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]     except InvalidValueException as e:<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1]                                   ^<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] SyntaxError: invalid syntax<br>[Tue Nov 20 11:23:49 2012] [error] [client 127.0.0.1] Premature end of script headers: featureserver.cgi<br><br>what does that mean?, however, when I try: </font><font style="font-size: 10pt;" face="Arial" color="#366092" size="2">http://www.mop.org/fs, I get the attached PNG.</font><br><font style="font-size:10pt" face="Arial" color="#366092" size="2"><br>Any help is appreciated,<br><br>Best regards,<br><br>Gery<br></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><br><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><br></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><br></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br>                                    </div></body>
</html>