<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="#1F497D" size="2">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"<br><br></font><pre>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</pre><br><font style="font-size: 10pt;" face="Arial" color="#1F497D" size="2">so I think this is now working because the scribble link gives:<br><br>This XML file does not appear to have any style information associated with it. The document tree is shown below.<br>      <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net//wfs/1.0.0/WFS-basic.xsd"><br>        <br></wfs:FeatureCollection><br><br>So, now it works (I think =D )<br><br></font><font style="font-size: 10pt;" face="Arial" color="#1F497D" size="2">Sorry for the noise,<br><br>Cheers,<br><br>Gery<br></font><font style="font-size:10pt" face="Arial" color="#1F497D" size="2">__________________________________________________________________________________________<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><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: gamejihou@hotmail.com<br>To: featureserver@lists.osgeo.org<br>Subject: Featureserver installation issues<br>Date: Tue, 20 Nov 2012 16:16:55 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
<br id="ecxFontBreak"><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</font><br><br><font style="font-size:10pt" face="Arial" color="#1F497D" size="2"><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></div>                                        </div></body>
</html>