[QGIS-Developer] QGIS-Server 2.99: Apache Internal Server Error

Benedikt Bonath b.bonath at googlemail.com
Wed Jul 26 08:13:02 PDT 2017


That helped a lot Alessandro. Many thanks! Now I'm able to test, what I
wanted to test at least.

But still the issue running QGIS Server using Apache is left.
Does anyone have an idea on that - could it be an QGIS Server error or is
there any mistake in my configs?


Thanks in advance for your help!
Regards
Benedikt




2017-07-25 18:12 GMT+02:00 Alessandro Pasotti <apasotti at gmail.com>:

> On Tue, Jul 25, 2017 at 5:43 PM, Benedikt Bonath <b.bonath at googlemail.com>
> wrote:
>
>> Ok, thanks a lot for that fast answer. Maybe this question should have
>> been formulated different. Thats for sure not an issue of QGIS - I was just
>> wondering how I can save the GetMap-response in a valid *.png by requesting
>> the *.fcgi directly. But just in case the solution is in someone mind
>> already, it would be great to know. Otherwise I will figure that out
>> someday later.
>>
>> Regards
>> Benedikt
>>
>>
>>
> Oh, sorry I misunderstood, if a Python script is an options you might want
> to check the python API of QGIS Server, you can get the body separate from
> the headers: https://qgis.org/api/classQgsServerResponse.html#
> a84621d1fca986d81f1dd21fbd159eb85
>
> For an example of how to use it: https://github.com/qgis/QGIS/
> blob/master/tests/src/python/qgis_wrapped_server.py#L125
>
> This is for QGIS 3, but QGIS 2 had similar (but not identical) ways to get
> the same results.
>
> If you cannot use python, a bash script with cut or similar could help to
> strip the header.
>
> Hope it helps.
>
>
>
>
>> 2017-07-25 17:18 GMT+02:00 Alessandro Pasotti <apasotti at gmail.com>:
>>
>>> On Tue, Jul 25, 2017 at 5:01 PM, Benedikt Bonath <
>>> b.bonath at googlemail.com> wrote:
>>>
>>>> Hi everybody,
>>>>
>>>> I have some problems to run QGIS-Server 2.99.
>>>>
>>>> I'm not sure where the problems exactly come from: mod_fcgid,
>>>> QGIS-Server or my own settings?
>>>> With the LTR-Version of QGIS-Server everything works just fine, so I
>>>> guess the issues are in my environment variables or the current QGIS-Server
>>>> itself.
>>>> Hopefully someone is able to answer this question.
>>>>
>>>> The Systems I tried with are (both were clean before):
>>>> 1.
>>>> Debian stretch
>>>> Own QGIS-master build AND nightly apt-packages
>>>> Apache (v2.4.25) with mod_fcgid (v2.3.9)
>>>>
>>>> 2.
>>>> Windows 7
>>>> Latest OSGeo4W QGIS-Dev Version
>>>> Apache 2.4.18 with mod_fcgid (v2.3.7)
>>>>
>>>>
>>>> ----DEBIAN----
>>>>
>>>> When I run the qgis_mapserv.fcgi directly in the command line,
>>>> everything is fine and I get the right response back.
>>>>
>>>> ##Direct Request
>>>> QUERY_STRING="SERVICE=WMS&VERSION=1.3.0&MAP=/usr/lib/cgi-bin
>>>> /test.qgs&REQUEST=GetProjectSettings" QGIS_SERVER_LOG_LEVEL="1"
>>>> QGIS_SERVER_LOG_FILE="/tmp/qgis_server.log"
>>>> /usr/lib/cgi-bin/qgis_mapserv.fcgi
>>>> (Btw: Another Problem is to store the response of a GetMap-Request in
>>>> *.png-File 'QUERY_STRING="......REQUEST=GetMap" ./qgis_mapserv.fcgi >
>>>> /tmp/test.png' because the first four lines are ASCII-Informations about
>>>> QGIS Server. Maybe someone knows a solutions for that as well?)
>>>>
>>>>
>>> I can't tell about the others, but this one is not an issue, it is how
>>> HTTP works, the first lines are part of the HTTP header, the end of the
>>> header is an empty line, the body follows.
>>>
>>>
>>> Regards
>>>
>>> --
>>> Alessandro Pasotti
>>> w3:   www.itopen.it
>>>
>>
>>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170726/a04495df/attachment-0001.html>


More information about the QGIS-Developer mailing list