[Featureserver] Errors settings up feature server?

Josh Livni mailing_lists at umbrellaconsulting.com
Wed Feb 6 10:20:21 EST 2008


Yup - you most definitely need python.  If, at a shell prompt, you can't 
run ./featureserver.cgi (which is in python), then it's not going to run 
over the web either. 

For future reference, you can view the first line of a .cgi to see what 
language interpreter it needs.

  -Josh

Rob Dunfey wrote:
> Hi Dane,
>
> I made the change you suggested but I still get the same errors.
>
> I'm a little concerned that I'm being really daft, because I don't 
> have python on my web host, but I see lots of .py files in the feature 
> server install.   But my understanding is that featureserver can use 
> python or cgi?  I assume that if python isn't installed, it falls back 
> on whatever language is used by the web host to execute cgi programs?
>
> I will have another look after work and see if I can make any progress.
>
> Rob
>
> On 06/02/2008, *Dane Springmeyer* <blake at hailmail.net 
> <mailto:blake at hailmail.net>> wrote:
>
>     Rob,
>
>     try:
>
>
>     # each additional section is a 'layer', which can be accessed.
>     # see DataSources.txt for more info on configuring.
>     [scribble]
>     type=DBM
>     file=/home/gisconsu/public_html/featureserver/featureserver.scribble
>     gaping_security_hole=yes
>
>     Dane
>
>
>
>     On Feb 6, 2008, at 6:51 AM, Rob Dunfey wrote:
>
>>     Hi Chris, Dane & List,
>>
>>     Dane suggested trying to access the index.html file instead, and
>>     moving the featureserver folder to a standard web-accessible
>>     location, so I moved it into the root directory
>>
>>     www.gisconsultancy.com/featureserver/
>>     <http://www.gisconsultancy.com/featureserver/>
>>
>>     and now I can load the index.html file (before it was giving a
>>     Internal Server Error 500) but it still gives some errors when I
>>     try and save a shape.
>>
>>     When I try and access...
>>
>>     http://gisconsultancy.com/featureserver.cgi/scribble/all.atom
>>     <http://example.com/yourdir/featureserver.cgi/scribble/all.atm>
>>
>>     ...it now asks me if I want to save the featureserver.cgi file? 
>>     I think this is because it needs to create a scribble file?
>>
>>     Dane suggested checking that I've uploaded the cfg file, I have.
>>     Although I've modified it slightly so that it creates the
>>     'scribble file' in the same directory as featureserver.cgi, at
>>     least that was my intention, cgf file contents below:
>>
>>     # Metadata section allows you to define the default
>>     # service type to be created
>>     [metadata]
>>     default_service=GeoJSON
>>
>>     # each additional section is a 'layer', which can be accessed.
>>     # see DataSources.txt for more info on configuring.
>>     [scribble]
>>     type=DBM
>>     file=scribble
>>     gaping_security_hole=yes
>>
>>     Thanks for your suggestions, I'm also pinging my web host to see
>>     if its something to do with their cgi support.
>>
>>     Rob
>>
>>     On 06/02/2008, *Christopher Schmidt* <crschmidt at metacarta.com
>>     <mailto:crschmidt at metacarta.com>> wrote:
>>
>>         On Wed, Feb 06, 2008 at 01:24:34PM +0000, Rob Dunfey wrote:
>>         > Hi,
>>         >
>>         > I'm trying to set up feature server on my web hosting
>>         account.  I tried at
>>         > the weekend, but I don't think my cgi was enabled on my web
>>         host, I think
>>         > I've solved this now and my simple cgi script works.
>>         >
>>         > http://www.gisconsultancy.com/cgi-bin/test.cgi
>>         >
>>         > However, when I try the following url I get the message below:
>>         >
>>         > http://gisconsultancy.com/cgi-bin/featureserver/featureserver.cgi/scribble/all.atm
>>
>>         I'll point out that this URL doesn't work for me at all, but
>>         the problem
>>         is that you want '.atom', not '.atm'.
>>         --
>>         Christopher Schmidt
>>         MetaCarta
>>
>>
>>     _______________________________________________
>>     Featureserver mailing list
>>     Featureserver at openlayers.org <mailto:Featureserver at openlayers.org>
>>     http://featureserver.org/mailman/listinfo/featureserver
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver
>   



More information about the Featureserver mailing list