Great! Il gio 4 mag 2023, 14:33 celati Laurent <laurent.cel...@gmail.com> ha scritto:
> Thanks a lot. It 's works well now. > > Le jeu. 4 mai 2023 à 11:37, Etienne Trimaille <etrimai...@3liz.com> a > écrit : > >> According to the QGIS documentation : >> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables >> >> QGIS_SERVER_LOG_FILE is deprecated and will be removed, in favor of >> QGIS_SERVER_LOG_STDERR. >> You shouldn't use both variables, either one or the other. We recommend >> using the non deprecated one, it's using the normal stderr, like a lot of >> services on a server. >> >> I'm just adding one more important information because it's about your >> server security : >> >> > If you go to >> > http://YOURhost/cgi-bin/qgis_mapserv.fcgi >> > It's qgis server active? >> >> It's indeed needed to debug like this, in order to see HTTP requests. Use >> curl/wget is needed. >> >> But as an important security reminder, the QGIS server URL mustn't be >> accessible from a public URL. Otherwise, it's possible to have sensitive >> data about your server published. Moreover, if the URL of QGIS server is >> published on the internet, then it's possible to totally bypass all user >> permissions and ACL about projects, layers, features visibility which makes >> Lizmap features about user, groups and rights useless. >> >> >> https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-side >> >> Just keep that in mind >> >> Regards, >> >> >> >> Le Jeudi, Mai 04, 2023 10:54 CEST, Antonio Viscomi <antovisc...@gmail.com> >> a écrit: >> >> >> >> Hi Laurent, >> If you go to >> >> http://YOURhost/cgi-bin/qgis_mapserv.fcgi >> >> It's qgis server active? >> >> >> Il gio 4 mag 2023, 10:36 celati Laurent <laurent.cel...@gmail.com> ha >> scritto: >> >>> Hi, >>> Thanks and sorry to disturb you again. I tried to create manually the >>> file qgislog.log in /var/log/qgis. >>> Then i set chown www-data /var/log/qgis/qgislog.log >>> and sudo chmod 775 /var/log/qgis/qgislog.log >>> I reloaded and restarted apache. But the file qgislog.log is and remains >>> empty. >>> I don't know where the problem come from. >>> >>> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille <etrimai...@3liz.com> a >>> écrit : >>> >>>> Hi, >>>> >>>> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, >>>> you can see it in the documentation >>>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables >>>> QGIS_SERVER_LOG_STDERR will send logs to stderr. >>>> >>>> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User < >>>> qgis-user@lists.osgeo.org> a écrit : >>>> >>>>> Laurent, >>>>> Please, try to create the file 'qgislog.log' manually first >>>>> If doesn't works I don't know why >>>>> >>>>> Il mer 3 mag 2023, 18:18 celati Laurent <laurent.cel...@gmail.com> ha >>>>> scritto: >>>>> >>>>>> 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 <antovisc...@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 < >>>>>>> antovisc...@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@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@lists.osgeo.org >>>>>>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >>>>>>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >>>>>>>> >>>>>>>> _______________________________________________ >>>>> QGIS-User mailing list >>>>> QGIS-User@lists.osgeo.org >>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >>>> >>>> >> >> >> > >
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user