<div dir="auto">Cool ! Have fun with lizmap :) </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 27 avr. 2023, 20:14, celati Laurent <<a href="mailto:laurent.celati@gmail.com">laurent.celati@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good evening,<br>A big thank-you. It's it works now! I had to set mod_php. And there was indeed a typo in my BDD postgresql settings. Many thanks for your precious help.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 26 avr. 2023 à 11:23, celati Laurent <<a href="mailto:laurent.celati@gmail.com" target="_blank" rel="noreferrer">laurent.celati@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">Hi all,<div>I'm taking the liberty to reply to my previous message. </div>Following to my previous post, For information, I limited myself to read the page <a href="https://docs.lizmap.com/3.6/fr/install/linux.html" target="_blank" rel="noreferrer">https://docs.lizmap.com/3.6/fr/install/linux.html</a><br>I did not look at the page <a href="https://docs.lizmap.com/3.6/fr/install/configuration.html" target="_blank" rel="noreferrer">https://docs.lizmap.com/3.6/fr/install/configuration.html</a> and <a href="https://docs.lizmap.com/3.6/fr/install/advanced_install.html" target="_blank" rel="noreferrer">https://docs.lizmap.com/3.6/fr/install/advanced_install.html</a><br>I confirm that the URL <a href="http://XXXX.XXXX.fr/cgi-bin/qgis_mapser" target="_blank" rel="noreferrer">http://XXXX.XXXX.fr/cgi-bin/qgis_mapser</a>… MAP=<br>does NOT return any error.<br>I therefore did not define a host for lizmap since I had already done one for qgis server.<br>I created folders for the data.<br>I created a postgis database on a posgresql server hosted on another server. I have created the profiles.ini.php files<br>I edited the file like this:<br><i><br>    [jdb:jauth]<br>    driver=pgsql<br>    host=IP of the server<br>    port=5432<br>    database="XXXXXX"<br>    user=XXXXX<br>    password=XXXXXX<br>    search_path=public<br>    sslmode=disable<br>    <br>    [jdb:lizlog]<br>    driver=pgsql<br>    host=IP of the server<br>    port=5432<br>    database="XXXXXX"<br>    user=XXXXXX<br>    password=XXXXXX<br>    search_path=public<br>    sslmode=disable</i><br><br>I have successfully installed the lizmap web client sources.<br><br>the url <a href="http://XXX.XXX.fr/lizmap/index.php/view/app/metadata" target="_blank" rel="noreferrer">http://XXX.XXX.fr/lizmap/index.php/view/app/metadata</a><br>returns me <i>Not Found<br>The requested URL was not found on this server.<br>Apache/2.4.54 (Debian) Server at <a href="http://xxxxx-xxxx.xxxx.fr" target="_blank" rel="noreferrer">xxxxx-xxxx.xxxx.fr</a> Port 80</i><br><br>the URL <a href="http://XXXX.XXXX.fr/lizmap/" target="_blank" rel="noreferrer">http://XXXX.XXXX.fr/lizmap/</a><br><br>returns<br><br><i>    <?php<br>    /**<br>    * @lizmap package<br>    * @subpackage lizmap<br>    * @author 3liz<br>    * @copyright 2011 3liz<br>    * @link <a href="http://3liz.com" target="_blank" rel="noreferrer">http://3liz.com</a><br>    * @license Mozilla Public License: <a href="http://www.mozilla.org/MPL/" target="_blank" rel="noreferrer">http://www.mozilla.org/MPL/</a><br>    */<br>    require('../application.init.php');<br>    require (JELIX_LIB_CORE_PATH.'request/jClassicRequest.class.php');<br>    checkAppOpened();<br>    // Load the configuration<br>    jApp::loadConfig('index/config.ini.php');<br>    // new coordinator, which we indicate to jApp<br>    jApp::setCoord(new jCoordinator());<br>    // New request object, which we pass to the coordinator, to process the routing.<br>    jApp::coord()->process(new jClassicRequest());</i><br><br>Weird... it returns the PHP code and it must be missing the end of the code (it starts with <?php but it should end with ?>)<br>maybe there is a config to do in Apache to tell it to run the PHP code instead of returning it in text format...?<br>In the lizmapCOnfig.ini.php file, I only replaced the default IP 127.0.0.1 with the name of our server at the line wmsServerURL="<a href="http://127.0.0.1/cgi-bin/qgis_mapserver.fcgi" target="_blank" rel="noreferrer">http://127.0.0.1/cgi-bin/qgis_mapserver.fcgi</a>"<br><br>When I ran php configurator.php I got NO error message.<br>When I ran php installer.php:<br><br><i>    Installation is starting<br>    All modules dependencies are ok<br>    Installation starts<br>    Module jelix installed<br>    [error] An error occured during the installation of the module jcommunity: error during the connection XXXXIP of the server host postgresql<br>    <br>    Installation is finished</i><br><br>I have successfully installed the demo. But these URLs return me a Not Found<br>The requested URL was not found on this server.<br>Apache/2.4.54 (Debian) Server at <a href="http://XXXXXX.XXXXXX.fr" target="_blank" rel="noreferrer">XXXXXX.XXXXXX.fr</a> Port 80:<br><br><div><a href="http://XXXX.XXX.fr/lizmap/index.php/lizmap/service/?repository=montpellier&project=montpellier&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetCapabilities" target="_blank" rel="noreferrer">http://XXXX.XXX.fr/lizmap/index.php/lizmap/service/?repository=montpellier&project=montpellier&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetCapabilities</a><br></div><div><br></div><div><a href="http://XXXX.XXXX.fr/lizmap/index.php/lizmap/service/?repository=montpellier&project=montpellier&SERVICE=WFS&REQUEST=GetCapabilities" target="_blank" rel="noreferrer">http://XXXX.XXXX.fr/lizmap/index.php/lizmap/service/?repository=montpellier&project=montpellier&SERVICE=WFS&REQUEST=GetCapabilities</a><br></div><div><br></div><div>Thanks again for your really usefull help.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 25 avr. 2023 à 11:57, celati Laurent <<a href="mailto:laurent.celati@gmail.com" target="_blank" rel="noreferrer">laurent.celati@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">Good morning,<div>Thanks very much for your reply.<br>As you noticed, by reading/applying the lizmap doc too quickly, I had installed Nginx whereas I already had apache installed. To avoid any risk of conflict, I therefore uninstalled Nginx. Although that was not the source of my problem.<br>I deleted the lizmap.conf file that I generated yesterday under /etc/apache2/sites-enabled. Now I can restart apache without any problem. I no longer have the error message. This lizmap.conf file was indeed the source of the problem.<br>I confirm that Apache is running on my Debian virtual server. As well as Qgis server. FYI, lib apache2-mod-fcgi is installed. Example URL used for my qgis server tests:<br><a href="http://XXXX.XXXX.fr/cgi-bin/qgis_mapser" target="_blank" rel="noreferrer">http://XXXX.XXXX.fr/cgi-bin/qgis_mapser</a> … MAP=......<br><br>I had  already created a host for qgis server. The virtual machine is NOT local. There is a domain name <a href="http://XXXX.XXXX.fr" target="_blank" rel="noreferrer">XXXX.XXXX.fr</a> If I understand correctly, it is useless for me to create a host for lizmap ? And I can consider the web config section finalized? FYI, under apache2/sites-enabled, I have a XXXX.XXXX.fr.conf file and 1 default-ssl.conf file and 1 default-ssl.conf-out file.<br><br>My spatial data are stored in a Postgis database hosted on another server/virtual machine. If I understand correctly, lizmap also uses a postgis db to store its own data. So In addition to the PostgreSQL server which currently hosts my postgis data, will I have to create a database on this same postgresql server dedicated to storing data used by Lizmap?</div><div><br>In addition to this part config / support (for BDDs stored on another server / MV), I have to have create the directories for the data, then install the sources of lizmap web client? Then I could in theory configure lizmap / launch the installer and make some tests? Well, I'll try to move forward... Thanks.<br></div></div><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 24 avr. 2023 à 18:08, Arnaud Vandecasteele <<a href="mailto:arnaud.sig@gmail.com" target="_blank" rel="noreferrer">arnaud.sig@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"><div><div><div><div>Hi,<br><br></div>Did you install the mod_proxy_fcgi package (sudo apt-get install libapache2-mod-fcgid) ?</div><div><br></div>Also, might not be related to your problem but you have installed 
nginx-full, nginx nginx-common.<br></div>Nginx is another web server. You have to choose between Apache or Nginx.<br></div><div>As they use the same port (80), you might have somes issues regarding which one has been started first.</div><div><br></div><div>Arnaud<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 24, 2023 at 7:41 PM celati Laurent <<a href="mailto:laurent.celati@gmail.com" target="_blank" rel="noreferrer">laurent.celati@gmail.com</a>> wrote:<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"><div>Good afternoon,</div>On a Debian 11 virtual server, apache and qgis server are installed and working. <div>I also installed the "qgis-lizmap-server-plugin" plugin and the "qgis plugin manager". I 'm trying now to install lizmap web client thanks to the official doc.<a href="https://docs.lizmap.com/3.6/fr/install/linux.html" target="_blank" rel="noreferrer"> https://docs.lizmap.com/3.6/fr/install/linux.html</a><br>I have a question regarding the Web Configuration section.<br>I installed the necessary packages: curl, openssl, libssl1.1, nginx-full, nginx nginx-common, php7.4-fpm php7.4-cli php7.4-bz2 php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-pgsql php7.4-sqlite3 php7.4-xml php7.4-ldap php7.4-redis</div><div>As requested by the doc, I created a lizmap.conf file under /etc/apache2/sites-available/ I replaced in this file the value localhost by the name of the server <a href="http://XXX.XXXX.fr" target="_blank" rel="noreferrer">XXX.XXXX.fr</a><br>This is the only modification made in this file.<br>It is written in the doc:<br><i>"You should declare the lizmap.local domain name somewhere (in your /etc/hosts, or into your DNS..), or replace it by your own domain name."</i><br>I did not declare a lizmap.local domain under /etc/hosts. Is it mandatory? Or is it optional? Because i have already done a similar action for qgis server installation.<br>Can someone explain this step? Are there any examples showing how to do this?<br></div><div><br></div><div>I tried anyway to activate the virtual host<br></div><div><br></div><div><i>"ln -s /etc/apache2/sites-available/lizmap.conf /etc/apache2/sites-enabled/lizmap.conf"</i><br></div><div><br></div><div>But when I try to restart apache, I can't. With these error messages:<br></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)">root@XXXXXXXXXXXX:/etc/apache2/sites-enabled# systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-04-24 15:21:31 CEST; 1min 32s ago
       Docs: <a href="https://httpd.apache.org/docs/2.4/" target="_blank" rel="noreferrer">https://httpd.apache.org/docs/2.4/</a>
    Process: 657246 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 30ms

avril 24 15:21:31 XXXXXXXXXXXX systemd[1]: Starting The Apache HTTP Server...
avril 24 15:21:31 XXXXXXXXXXXX apachectl[657249]: apache2: Syntax error on line 240 of /etc/apache2/apache2.conf: Syntax error on line 24 of /etc/apache2/sites-enabled/lizmap.conf: Could not open configuration file /etc/apache2/fastc>
avril 24 15:21:31 XXXXXXXXXXXX apachectl[657246]: Action 'start' failed.
avril 24 15:21:31 XXXXXXXXXXXX apachectl[657246]: The Apache error log may have more information.
avril 24 15:21:31 XXXXXXXXXXXX systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
avril 24 15:21:31 XXXXXXXXXXXX systemd[1]: apache2.service: Failed with result 'exit-code'.
avril 24 15:21:31 XXXXXXXXXXXX systemd[1]: Failed to start The Apache HTTP Server.
 ESCOC
yntax error on line 24 of /etc/apache2/sites-enabled/lizmap.conf: Could not open configuration file /etc/apache2/fastcgi_params;: No such file or directory</pre></div><div><br></div><div><br></div><div>The error message seems to refer to line 24 of the lizmap.conf file. This line is:<br></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)">include fastcgi_params;</pre></div><div><br></div><div><br></div><div>In advance, thanks a lot for your help.</div></div>
_______________________________________________<br>
Lizmap mailing list<br>
<a href="mailto:Lizmap@lists.osgeo.org" target="_blank" rel="noreferrer">Lizmap@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/lizmap</a><br>
</blockquote></div><br clear="all"><br><span>-- </span><br><div dir="ltr"><div dir="ltr"><div><div dir="ltr">--------------------------------------------------------------------<br>Arnaud Vandecasteele<br><br><br></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>