1

I'm running QGIS 3.4 server on Windows 10. The docs here say that you need to add these lines to httpd.conf to enable QGIS server logging:

  FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgisserver.log
  FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

(Those lines are also referenced in several other: here and here for example)

But those only work if mod_fcgid is installed. Apparently you have to jump through some moving-target hoops to install mod_fcgid on Windows.

Is there a way to enable QGIS server logging without mod_fcgid?

2
  • QGIS_SERVER_LOG_FILE is deprecated and will be removed in QGIS 4. It's replaced by QGIS_SERVER_LOG_STDERR. You can have a look to docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/… I'm not sure how it works on windows.
    – etrimaille
    Commented Nov 21, 2018 at 19:12
  • Thanks, that is good to know and I will use _STDERR when this is all figured out. I was hoping you could just use SetEnv in place of FcgidInitialEnv - I tried SetEnv, and the server started but nothing appeared in the specified log file even after making sure the permissions were fully open.
    – Tom Grundy
    Commented Nov 21, 2018 at 19:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.