<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    Hi Laurent,<br>
    <br>
    Your `wmts:capabilities` command does not have the right parameters.<br>
    You have written<br>
    ```<br>
    php lizmap/console.php wmts:capabilities -v dr0 forages_2154<br>
    ```<br>
    But `dr0` is not the repository of the `forages_2154` project. `dr0`
    is also a project.<br>
    The repository of the `forages_2154` and `dr0` projects is
    `lizmaptest`.<br>
    With the command `php lizmap/console.php project:load`, you got :<br>
    * Enter the repository lizmaptest<br>
    * Get the project forages_2154<br>
    * Get the project dr0<br>
    <br>
    If you want to try the cache capabilities for `forages_2154`
    project. The command is <br>
    ```<br>
    php lizmap/console.php wmts:capabilities -v lizmaptest forages_2154<br>
    ```<br>
    Regards,<br>
    René-Luc<br>
    <br>
    <div class="moz-cite-prefix">Le 16/05/2023 à 12:08, celati Laurent a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHByMH15Dvw-8BMckWdrktftRvey-xrXt9TQptV7NWB1PnzWtQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Good morning,
        <div><br>
        </div>
        <div>Thanks for your message, i have currently one only Qgis
          server installed/available.</div>
        <div>Sorry but what do you mean by "enhance the number of QGIS
          Server available ?"</div>
        <div><br>
        </div>
        <div>
          <div>Following to my previous message, regarding my initial
            and main issue, For information, when i do : </div>
          <div><br>
          </div>
          <div>
            <pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em;color:rgb(51,51,51)"><span style="background-color:rgb(243,243,243)">php lizmap/console.php project:load</span></pre>
            <pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em;color:rgb(51,51,51)">
</pre>
            <pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em;color:rgb(51,51,51)">i get : </pre>
            <pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em;color:rgb(51,51,51)">
</pre>
            <pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="background-color:rgb(238,238,238)">/var/www/lizmap/lizmap-web-client-3.6.3# php lizmap/console.php project:load
Enter the repository lizmaptest 
Get the project zios
1 request(s) return success for the project zios
Enter the repository aero
Get the project aero_v2
1 request(s) return success for the project aero_v2
Enter the repository dr0
Get the project forages
1 request(s) return success for the project forages
Get the project forages_2154
1 request(s) return success for the project forages_2154
Get the project dr0
1 request(s) return success for the project dr0
Get the project forages_2154_with_fond
1 request(s) return success for the project forages_2154_with_fond</i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="">
</i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="">But when i do : </i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none">
</pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="background-color:rgb(243,243,243)">php lizmap/console.php wmts:capabilities -v dr0 forages_2154
No layers configured with cache!</i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="background-color:rgb(243,243,243)">
</i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><i style="background-color:rgb(255,255,255)">Do you know where the problem comes from ?</i></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none">
</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><span style="background-color:rgb(255,255,255)">In parrarel, always </span>with the aim of improving performance, i tried to edit my vhost apache in adding : </pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><pre style="color:rgb(34,34,34);font-size:small;margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><span style="background-color:rgb(238,238,238)">FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING "1"</span></pre><pre style="color:rgb(34,34,34);font-size:small;margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><span style="background-color:rgb(238,238,238)">and</span></pre></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><span style="background-color:rgb(238,238,238)">FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY "/tmp/"  </span></pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">(Is it a good idea or i should rather keep the default value ('cache in profile directory') ?</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">i setted this path because into my lizmap cache config i noticed : cache root directory :  /tmp/)</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><pre style="color:rgb(34,34,34);font-size:small;margin-top:0px;margin-bottom:0px;padding:0px;list-style:none"><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">Still in parralel, I discovered the existence of these 2 qgis server plugins. Would it be adviced to installing them?
<a href="https://github.com/3liz/qgis-server-wmts-cache-plugin" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/3liz/qgis-server-wmts-cache-plugin</a>
</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><a href="https://github.com/3liz/qgis-server-tiles-plugin" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/3liz/qgis-server-tiles-plugin</a></pre></pre>
</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">Eventually, I'm taking the liberty to paste below an update of my qgis server logs :</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">I'm surprised to not read in the environment summary logs, the new enviro variables 'FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING'
and 'FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY' 
</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">How to ensure that the cache server is functional and taken into account?</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em">
</pre><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;padding:0px;list-style:none;font-size:1.2em"><span style="background-color:rgb(238,238,238)">11:30:43 INFO Server[919778]: ******************** New request ***************
11:30:43 INFO Server[919778]: Request URL: <a href="http://sig-rec.andra.fr/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json" moz-do-not-send="true" class="moz-txt-link-freetext">http://sig-rec.andra.fr/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json</a>
11:30:43 INFO Server[919778]: Environment:
11:30:43 INFO Server[919778]: ------------------------------------------------
11:30:43 INFO Server[919778]: SERVER_NAME: <a href="http://sig-rec.andra.fr" moz-do-not-send="true">sig-rec.andra.fr</a>
11:30:43 INFO Server[919778]: REQUEST_URI: /cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
11:30:43 INFO Server[919778]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
11:30:43 INFO Server[919778]: PATH_INFO: /lizmap/server.json
11:30:43 INFO Server[919778]: REMOTE_ADDR: 192.168.4.7
11:30:43 INFO Server[919778]: SERVER_PORT: 80
11:30:43 INFO Server[919778]: QUERY_STRING:
11:30:43 INFO Server[919778]: REQUEST_METHOD: GET
11:30:43 INFO Server[919778]: QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs
11:30:43 INFO Server[919778]: SERVER_PROTOCOL: HTTP/1.1
11:30:43 INFO Server[919778]: Using configuration file path from environment: /home/qgis/projects/world.qgs
11:30:43 INFO Lizmap[919778]: Request headers provided
11:30:43 INFO Lizmap[919778]: No lizmap user groups in request headers
11:30:43 INFO Server[919778]: Using configuration file path from environment: /home/qgis/projects/world.qgs
11:30:43 INFO Server[919778]: Trying URL path: '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'
11:30:43 INFO Server[919778]: API Lizmap accepts the URL path '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'
11:30:43 INFO Server[919778]: Checking API path /server.json for server.json
11:30:43 INFO Server[919778]: API Lizmap: found handler server
11:30:43 CRITICAL Server[919778]: Service ATLAS is not registered
11:30:43 CRITICAL Server[919778]: Service CADASTRE is not registered
11:30:43 INFO Server[919778]: Request finished in 6 ms</span>

<p class="gmail-MsoBodyText" style="margin:8pt 0cm;text-align:justify;line-height:12pt;font-size:9pt;font-family:"Lucida Sans",sans-serif">Thans a lot again for your usefull help ans support.</p></pre></pre></pre>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    <div id="grammalecte_menu_main_button_shadow_host" style="width:
      0px; height: 0px;"></div>
  </body>
  <lt-container></lt-container>
</html>