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

Andreas Neumann a.neumann at carto.net
Mon Jun 10 00:35:45 PDT 2013


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,619877,226198&visibleLayers=Baulinie,Amtliche%20Vermessung%20(schwarz-weiss),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,619877,226198&visibleLayers=Baulinie,Amtliche%20Vermessung%20(schwarz-weiss),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
> 




More information about the Qgis-user mailing list