I'm attempting to install QGIS Server 2.8 on Windows Server 2012 R2. I've followed the instructions here and here. I've moved all the dlls from OSGeo4W to SysWOW64 for completeness' sake. I'm still getting a the following 500 error when I attempt to use GetCapabilities:
[Tue Mar 03 11:30:13 2015] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error
[Tue Mar 03 11:30:13 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe
When I attempt to run qgis_mapserv.fcgi.exe directly from bin, I get this message:
The program can't start because qscintilla2.dll is missing from your computer. Try reinstalling the program to fix the problem.
My httpd_qgis.conf is:
LoadModule fcgid_module modules/mod_fcgid.so
SetEnv PATH "C:\OSGeo4W\bin;C:\OSGeo4W\apps\qgis\bin;C:\OSGeo4W\apps\grass\grass-6.4.4\bin;C:\OSGeo4W\apps\grass\grass-6.4.4\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
SetEnv QGIS_PREFIX_PATH "C:\OSGeo4W\apps\qgis"
SetEnv QT_PLUGIN_PATH "C:\OSGeo4W\apps\qgis\qtplugins;C:\OSGeo4W\apps\qt4\plugins"
SetEnv TEMP "C:\Users\ADMINI~1\AppData\Local\Temp\3"
Alias /qgis/ C:\OSGeo4W/apps/qgis/bin/
<Directory "C:\OSGeo4W/apps/qgis/bin/">
SetHandler fcgid-script
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Can anybody help me out with this error?
Best Answer
Your PYTHONPATH environment variable must be specified. QGIS Server 2.8 deals with Python extension and you must provide it a good environment.
Here is my httpd.conf
My QGIS Server is now working. Hope yours will work too