[Qgis-user] Qgis server : problem with qgis server logs

celati Laurent laurent.celati at gmail.com
Wed May 3 09:18:15 PDT 2023


Hello,
Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
/var/log/qgis/qgislog.log
Then i set chown www-data /var/log/qgis
and sudo chmod 775 /var/log/qgis

Then a2ensite XXX.XXX.fr
Then i have reload apache systemctl reload apache2

But still no qgislog file has been created.

Le mer. 3 mai 2023 à 17:53, Antonio Viscomi <antoviscomi at gmail.com> a
écrit :

> in additions
> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
> sudo chmod 775 /var/log/qgis/qgislog.log
>
> Saluti
>
> Antonio
>
>
> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
> antoviscomi at gmail.com> ha scritto:
>
>> hi Laurent,
>> I set
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>> also,
>> and works fine for me
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>> qgis-user at lists.osgeo.org> ha scritto:
>>
>>> Good afternoon,
>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log
>>> deals with a problem regarding my qgis server logs.
>>> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
>>> with ths part of content  :
>>>
>>>   # QGIS log
>>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>>
>>> And i have create the directories that will store the QGIS Server logs
>>>
>>> mkdir -p /var/log/qgis/
>>> chown www-data:www-data /var/log/qgis
>>>
>>> But, there are never no log file created within this folder. Do you know
>>> why ? Do i have to restart qgis server ?
>>> I know how to restart apache (systemctl restart apache2).
>>> But how to restart qgis server ?
>>>
>>> Thanks a lot for your guidances.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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/20230503/82925118/attachment.htm>


More information about the QGIS-User mailing list