[Live-demo] [OSGeo] #1383: qgis_server demo brings the OSGeo Live VM down
OSGeo
trac_osgeo at osgeo.org
Tue Aug 12 17:41:29 PDT 2014
#1383: qgis_server demo brings the OSGeo Live VM down
---------------------+------------------------------------------------------
Reporter: rouault | Owner: live-demo@…
Type: defect | Status: new
Priority: normal | Milestone: OSGeoLive8.0
Component: LiveDVD | Keywords: qgis_server
---------------------+------------------------------------------------------
Comment(by larrysh):
Hi,
I don't see where mod_fcgid is configured for QGIS Server. The default for
libapache2-mod-fcgid (assuming it is the basic Ubuntu package) is:
'''/etc/apache2/mods-available/fcgid.conf'''
{{{
<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
}}}
Probably would want something like:
{{{
<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
FcgidCmdOptions /usr/lib/cgi-bin/qgis_mapserv \
ConnectTimeout 5 \
IdleTimeout 300 \
IOTimeout 40 \
MaxProcesses 20 \
MaxProcessLifeTime 3600 \
MaxRequestsPerProcess 0 \
MinProcesses 3
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
}}}
Just guessing on the appropriate config here. See:
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidcmdoptions for
details.
Probably best to not edit that file, but set the options in the default
site config or make a specific config that's included. Then, add the setup
to '''install_qgis_mapserver.sh'''. All of this is completely untested by
me (just pulled an older config I had used in the past out of an old
server backup).
It is also possible to configure QGIS Server to [http://osgeo-
org.1560.x6.nabble.com/QGIS-Mapserver-with-Lighttpd-td5150292.html run
under lighttpd instead]. This ''may'' be a lightweight alternative to
Apache, if the issue can not be resolved (though no guarantee that moving
to lighttpd will work around the issue).
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1383#comment:6>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Osgeolive
mailing list