[Qgis-developer] qgis mapserver

Arnd.Weber at bafg.de Arnd.Weber at bafg.de
Mon May 26 09:00:41 PDT 2014

Thank you very much for this hint!

I finally changed /etc/apache2/default-server.conf and changed the "cgi-bin" settings to include all my "optional" libraries from the "Environment Modules".

<Directory "/srv/www/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
        # for QGis mapserver
        SetEnv LD_LIBRARY_PATH /opt/qgis-2.2-svn/lib:/opt/expat-2.1.0/lib:/opt/qwtpolar-1.1.0/lib:/opt/qwt-6.0.2/lib:/opt/qt-4.8.5/lib:/opt/bison-3.0.2/lib:/opt/postgresql-9.2.8/lib:/opt/gdal-1.11.0/lib:/opt/libxml2-2.9.0/lib:/opt/oracle-instantclient-11.2:/opt/FileGDB_API-1.3/lib:/opt/libkml-1.3.0-svn/lib:/opt/openjpeg-2.0.0-svn/lib:/opt/libgeotiff-1.4.0/lib:/opt/libtiff-4.0.3/lib:/opt/libpng-1.6.10/lib:/opt/zlib-1.2.8/lib:/opt/geos-3.4.2/lib:/opt/proj-4.8.0/lib:/opt/Python-2.7.6/lib:/usr/lib:/usr/lib64:/lib:/lib64:/opt/intel/fce/10.1.015/lib

With these additional libraries everything works nicely. 


-----Ursprüngliche Nachricht-----
Von: qgis-developer-bounces at lists.osgeo.org [mailto:qgis-developer-bounces at lists.osgeo.org] Im Auftrag von Marco Hugentobler
Gesendet: Montag, 26. Mai 2014 17:19
An: qgis-developer at lists.osgeo.org
Betreff: Re: [Qgis-developer] qgis mapserver

As a first guess is that maybe the server cannot find all the libraries. 
Could you try to run the server on command line first (also as web 
server user) and see if it crashes already there?


On 26.05.2014 16:50, Arnd.Weber at bafg.de wrote:
> On our institutes SLES 11 SP3 server I have set up a software environment with most of the open source GIS software available at the moment using "Environment Modules". With a bit of tweaking I got everything to install and run nicely, but with the Qgis mapserver I'm struggeling at the moment. Through zypper I have installed the packages "FastCGI" and "FastCGI-devel" system-wide and QGis 2.2 compiles and installs nicely from sources.
> Generally I have been following these descriptions:
> http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/
> http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
> I have created a "gis" directory in /srv/www/cgi-bin/, copied a .qgs-file and the qgis_mapserv.fcgi binary to this folder and changed the general settings of apache. When running the browser with "http://localhost/cgi-bin/gis/qgis_mapserv.fcgi?", I get the following reply:
> ***********************************************************
> Server error!
> The server encountered an internal error and was unable to complete your request.
> Error message:
> Premature end of script headers: qgis_mapserv.fcgi
> If you think this is a server error, please contact the webmaster.
> Error 500
> ************************************************************
> In the meantime I have recompiled QGis, tried a variety of settings of the apache server, but can't find a solution to my problem. Can anybody give me a hint on my potential mistakes? Are there any apache settings to be changed or is the problem QGis-related as the reply suggests?
> Regards
> Arnd
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

Qgis-developer mailing list
Qgis-developer at lists.osgeo.org

More information about the Qgis-developer mailing list