<div dir="ltr"><div>Hi,</div><div><br></div><div>It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you can see it in the documentation <a href="https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables" target="_blank">https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables</a></div><div>QGIS_SERVER_LOG_STDERR will send logs to stderr.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Laurent, <div dir="auto">Please, try to create the file 'qgislog.log' manually first</div><div dir="auto">If doesn't works I don't know why</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il mer 3 mag 2023, 18:18 celati Laurent <<a href="mailto:laurent.celati@gmail.com" target="_blank">laurent.celati@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log</div><div>Then i set chown www-data /var/log/qgis</div><div>and sudo chmod 775 /var/log/qgis</div><div><br></div><div>Then a2ensite <a href="http://XXX.XXX.fr" rel="noreferrer" target="_blank">XXX.XXX.fr</a></div><div>Then i have reload apache systemctl reload apache2</div><div><br></div><div>But still no qgislog file has been created. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 3 mai 2023 à 17:53, Antonio Viscomi <<a href="mailto:antoviscomi@gmail.com" rel="noreferrer" target="_blank">antoviscomi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">in additions <div>sudo chown myuser:wwwdata /var/log/qgis/qgislog.log<br><div>sudo chmod 775 /var/log/qgis/qgislog.log<br><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><br></div><div>Saluti</div><div dir="ltr"><br></div><div dir="ltr">Antonio</div></div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <<a href="mailto:antoviscomi@gmail.com" rel="noreferrer" target="_blank">antoviscomi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">hi Laurent,<br clear="all"><div><div dir="ltr"><div dir="ltr"><div>I set </div><div dir="ltr">FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log<br></div><div>also, </div><div>and works fine for me</div><div><br></div><div>Saluti</div><div dir="ltr"><br></div><div dir="ltr">Antonio</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" rel="noreferrer" target="_blank">qgis-user@lists.osgeo.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Good afternoon,<br>I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log deals with a problem regarding my qgis server logs. <br>In the /etc/apache2/sites-available i have created a file XXX.XXX.conf with ths part of content :<br><br> # QGIS log<br> FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1<br> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0<br><br>And i have create the directories that will store the QGIS Server logs <br><br>mkdir -p /var/log/qgis/ <br>chown www-data:www-data /var/log/qgis<br><br>But, there are never no log file created within this folder. Do you know why ? Do i have to restart qgis server ? <br>I know how to restart apache (systemctl restart apache2). <br>But how to restart qgis server ?<div><br></div><div>Thanks a lot for your guidances.<br><br><br><div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" rel="noreferrer" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>