[Qgis-user] QGIS server and fcgi with ubuntu 12.04

Marco Hugentobler marco.hugentobler at sourcepole.ch
Mon Jun 10 01:42:38 PDT 2013


>And /usr/lib/libfcgi.so is found.

It is part of package libfcgi-dev

Regards,
Marco

On 10.06.2013 10:37, Ziegler Stefan wrote:
> Hi Andi
>
> FCGI_INCLUDE_DIR /usr/include
> FCGI_LIBRARY /usr/lib/libfcgi.so
>
> In /usr/include there are some header files:
>
> fcgiapp.h, fcgi_config.h, fcgimisc.h, fcgio.h, fcgios.h, fcgi_stdio.h
>
> And /usr/lib/libfcgi.so is found.
>
> Regards
> Stefan
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: qgis-user-bounces at lists.osgeo.org [mailto:qgis-user-bounces at lists.osgeo.org] Im
>> Auftrag von Andreas Neumann
>> Gesendet: Montag, 10. Juni 2013 09:36
>> An: qgis-user at lists.osgeo.org
>> Betreff: Re: [Qgis-user] QGIS server and fcgi with ubuntu 12.04
>>
>> Hi Stefan,
>>
>> Did you check these paths with ccmake before compiling?
>>
>> FCGI_INCLUDE_DIR
>> FCGI_LIBRARY
>>
>> Maybe checking these paths and rerunning ccmake would help?
>>
>> Andreas
>>
>> Am 10.06.2013 08:34, schrieb Ziegler Stefan:
>>> Hi
>>>
>>> I have some problems running QGIS server as fcgi with Ubuntu 12.04. "apachectl -t
>> -D DUMP_MODULES" shows that the fcgid module ist loaded. But I only get errors when
>> trying to run it as fcgi:
>>> [Sun Jun 09 21:24:39 2013] [error] [client 37.35.115.249] Premature
>>> end of script headers: qgis_mapserv.fcgi, referer:
>>> http://www.catais.org/map/grundbuchplan?startExtent=615721,222428,6198
>>> 77,226198&visibleLayers=Baulinie,Amtliche%20Vermessung%20(schwarz-weis
>>> s),Strassenkarte&format=image%2fpng%3b%20mode%3d8bit
>>> [Sun Jun 09 21:24:40 2013] [warn] [client 37.35.115.249]
>>> (104)Connection reset by peer: mod_fcgid: error reading data from
>>> FastCGI server, referer:
>>> http://www.catais.org/map/grundbuchplan?startExtent=615721,222428,6198
>>> 77,226198&visibleLayers=Baulinie,Amtliche%20Vermessung%20(schwarz-weis
>>> s),Strassenkarte&format=image%2fpng%3b%20mode%3d8bit
>>>
>>> When commenting out "AddHandler fcgid-script .fcgi" line from fcgid.conf file it only
>> runs as normal cgi and then it's terrible slow. I'm using a self compiled master version
>> of QGIS. Had anyone similar problems with ubuntu 12.04? It worked with the same
>> configuration with Ubuntu 10.04.
>>> Excerpts from virtual host config:
>>>
>>> ScriptAlias  /cgi-bin/ /home/catais/catais.org/docroot/cgi-bin/
>>>   <Directory "/home/catais/catais.org/docroot/cgi-bin">
>>>      AllowOverride None
>>>      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>>>      #SetHandler fcgid-script
>>>      #AddHandler fcgid-script .fcgi
>>>
>>>      Order allow,deny
>>>      Allow from all
>>>      SetEnv LD_LIBRARY_PATH /home/catais/Apps/qgis_master/lib
>>> </Directory>
>>>
>>> Fcgid.conf:
>>>
>>> <IfModule mod_fcgid.c>
>>>    AddHandler    fcgid-script .fcgi
>>>    FcgidConnectTimeout 600
>>>    FcgidMaxRequestLen 134217728
>>>
>>>    FcgidMaxProcesses 50
>>>    FcgidMinProcessesPerClass 5
>>>    FcgidMaxProcessesPerClass 20
>>>
>>>    ProcessLifeTime 7200
>>>    IPCCommTimeout  7200
>>>    IPCConnectTimeout 300
>>>
>>>    FcgidProcessLifeTime 7200
>>>
>>>    SocketPath /var/lib/apache2/fcgid/sock
>>>    FcgidInitialEnv LD_LIBRARY_PATH /home/catais/Apps/qgis_master/lib
>>>    FcgidInitialEnv DISPLAY ":0"
>>>    FcgidInitialEnv LANG=de_CH.UTF-8
>>> </IfModule>
>>>
>>> Regards
>>> Stefan
>>>
>>> Freundliche Grüsse
>>> Stefan Ziegler
>>> Leiter amtliche Vermessung
>>>
>>> Amt für Geoinformation
>>> Amtliche Vermessung
>>> Rötistrasse 4
>>> 4500 Solothurn
>>>
>>> Telefon +41 32 627 75 96
>>> Telefax +41 32 627 75 98
>>> stefan.ziegler at bd.so.ch
>>> http://www.so.ch
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee




More information about the Qgis-user mailing list