[Qgis-user] QGIS server and fcgi with ubuntu 12.04
Ziegler Stefan
Stefan.Ziegler at bd.so.ch
Sun Jun 9 23:34:43 PDT 2013
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
More information about the Qgis-user
mailing list