Bug report #12442

QGIS Server 2.8.1 does not work anymore under Windows

Added by Giovanni Manghi almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:QGIS Server
Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:20611

Description

After installing qgis server under Windows/Osgeo4w the result is "internal server error".

The apache log says

[Tue Mar 24 19:58:30 2015] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error
[Tue Mar 24 19:58:30 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe

History

#1 Updated by Jürgen Fischer almost 10 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

Set PYTHONHOME to %OSGEO4W_ROOT%/apps/python27

#2 Updated by Giovanni Manghi almost 10 years ago

Jürgen Fischer wrote:

Set PYTHONHOME to %OSGEO4W_ROOT%/apps/python27

ok it worked, but the apache configuration file will be updated in the osgeo4w installer or is something that will be needed to always do manually? cheers!

#3 Updated by Giovanni Manghi almost 10 years ago

Note for others who may encounter this issue.

The line to add is

DefaultInitEnv PYTHONHOME "C:/OSGeo4W/apps/python27"

in

c:\\osgeo4w\\httpd.d\\httpd_qgis.conf

Also available in: Atom PDF