[Qgis-user] Problems loading/accessing QGIS Server.... what am I missing?

Peter Len peteralen at earthlink.net
Wed Jan 15 10:13:44 PST 2014


I am using QGIS and wanted to install the QGIS Server on a Windows 7 box.  I was looking at the following pages for how to do an install on Windows 7:

http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
http://anitagraser.com/2012/04/06/qgis-server-on-windows7-step-by-step/

I got the installer from http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe.  When I ran the install, I did an advanced installation and selected to install the Apache Webserver and the QGIS Server.  The instructions went on to say that for Windows installs you must change FastCGI to just the CGI in the httpd_qgis.conf file. So now the httpd_qgis.conf references:

LoadModule cgi_module modules/mod_cgi.so
SetHandler cgi-script

After another change in that conf file to change DefaultInitEnv to SetEnv (using DefaultInitEnv threw errors).  After that, I was able to start the Apache web server and was able go to the default page.  I noticed that the page indicated that there was only 1 osgeo4w application installed (phpinfo).

The instructions then indicated that the following GetCapabilities call should work:

http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

When I ran this in the browser, it indicated that there was an error.  The error log file stated:

Premature end of script headers: qgis_mapserv.fcgi.exe

This made me think that there was some mismatch between changing the conf file to use "cgi" rather than "fcgi".  There is no qgis_mapserv.cgi.exe, however.  Not sure what I am missing here.  Both sets of instructions were followed and they both indicate it should be working.  Does anyone know what I may be missing?

Thanks - Peter



More information about the Qgis-user mailing list