[Qgis-user] QGIS 3.28 Server writes thousands temp files and folders under windows

flajie at gmx.de flajie at gmx.de
Sat Jul 1 06:04:06 PDT 2023


Thanks Abel!

with the parameter the folders and files are now written to the
specified directory.

FcgidInitialEnv TEMP "X:\temp"


The questions remain:

Is it possible to disable the creation of temp folders and files?

What use do they have?

Is QGIS server responsible for this or the Apache http server?


Am 30.06.2023 um 17:48 schrieb Abel Gonzalez:
> Hi!
> You would have to add a variable where you define where QGIS server
> will save the temp files. Then you can create a script that erase
> these files from time to time😉
> BR/Abel
>
> fre 30 juni 2023 kl. 15:27 skrev Jan Lippmann via QGIS-User
> <qgis-user at lists.osgeo.org>:
>
>     Hello,
>     I have QGIS Server 3.28.7 and Apache 2.4.57 installed on a Windows
>     server.
>     The problem which exists:
>     QGIS Server and or the Apache Server write thousands of temp files
>     and folders to the C:\Windows folder on map requests.
>     1. how to prevent these thousands of files and folders from being
>     created?
>     2. how can I set a temp folder path that QGIS/Apache use.
>     The files and folders look like this:
>     "C:\Windows\qgis_mapserv-ZrKtPx"
>     "C:\Windows\qgis_mapserv-ZWdliz"
>     "C:\Windows\QGIS3-aFnerJ"
>     "C:\Windows\QGIS3-anjafa"
>     "C:\Windows\QGIS3-cUBeOv\ZjIOVf_styles.db"
>     Translated with www.DeepL.com/Translator
>     <http://www.DeepL.com/Translator> (free version)
>     Would be great if someone could help me with this.
>     Thanks a lot.
>     Greetings Jan
>     httpd-vhosts.conf:
>     -----------------------
>
>     FcgidInitialEnv PATH
>     "C:\OSGeo4W\bin;C:\OSGeo4W\apps\qgis-ltr\bin;C:\OSGeo4W\apps\Qt5\bin"
>     FcgidInitialEnv QT_PLUGIN_PATH
>     "C:\OSGeo4W\apps\qgis-ltr\qtplugins;C:\OSGeo4W\apps\Qt5\plugins"
>     FcgidInitialEnv PYTHONHOME "C:\OSGeo4W\apps\Python39"
>     FcgidInitialEnv PYTHONPATH
>     "C:\OSGeo4W\apps\qgis-ltr\.\python;C:\OSGeo4W\apps\qgis-ltr\.\python\plugins;C:\OSGeo4W\apps\Python39\DLLs;C:\OSGeo4W\apps\Python39\lib;C:\OSGeo4W\bin;C:\OSGeo4W\apps\Python39;C:\OSGeo4W\apps\Python39\lib\site-packages"
>     FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>     FcgidInitialEnv QGIS_SERVER_LOG_FILE
>     "C:\\webserver\\Apache24\\logs\\qgis_server.log"
>     FcgidInitialEnv QGIS_SERVER_CACHE_SIZE 100
>     FcgidIOTimeout 120
>     FcgidInitialEnv LC_ALL "en_US.UTF-8"
>     FcgidInitialEnv PYTHONIOENCODING UTF-8
>     FcgidInitialEnv LANG "en_US.UTF-8"
>     FcgidInitialEnv QGIS_DEBUG 1
>     FcgidInitialEnv QGIS_PLUGINPATH
>     "C:\OSGeo4W\apps\qgis-ltr\python\plugins"
>     FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING 1
>     FcgidInitialEnv QGIS_SERVER_MAX_THREADS 3
>     FcgidInitialEnv QGIS_SERVER_LANDING_PAGE_PROJECTS_DIRECTORIES
>     "C:\webserver\qgis_ows\qgs"
>     FcgidInitialEnv QGIS_SERVER_TRUST_LAYER_METADATA 1
>
>
>     SetEnvIf Request_URI ^/qgis QGIS_PREFIX_PATH
>     "C:\OSGeo4W\apps\qgis-ltr"
>     SetEnvIf Request_URI ^/qgis GDAL_DATA "C:\OSGeo4W\share\gdal"
>     SetEnvIf Request_URI ^/qgis GDAL_DRIVER_PATH "C:\OSGeo4W\bin"
>     SetEnvIf Request_URI ^/qgis PDAL_DRIVER_PATH "C:\OSGeo4W\bin"
>     SetEnvIf Request_URI ^/qgis GDAL_SKIP "JP2ECW"
>     SetEnvIf Request_URI ^/qgis PROJ_LIB "C:\OSGeo4W\share\proj"
>     _______________________________________________
>     QGIS-User mailing list
>     QGIS-User at lists.osgeo.org
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230701/dd96f3a1/attachment.htm>


More information about the QGIS-User mailing list