[Lizmap] Lizmap installation (Debian/Apache) : web configuration section
Arnaud Vandecasteele
arnaud.sig at gmail.com
Mon Apr 24 09:08:11 PDT 2023
Hi,
Did you install the mod_proxy_fcgi package (sudo apt-get install
libapache2-mod-fcgid) ?
Also, might not be related to your problem but you have installed
nginx-full, nginx nginx-common.
Nginx is another web server. You have to choose between Apache or Nginx.
As they use the same port (80), you might have somes issues regarding which
one has been started first.
Arnaud
On Mon, Apr 24, 2023 at 7:41 PM celati Laurent <laurent.celati at gmail.com>
wrote:
> Good afternoon,
> On a Debian 11 virtual server, apache and qgis server are installed and
> working.
> 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. https://docs.lizmap.com/3.6/fr/install/linux.html
> I have a question regarding the Web Configuration section.
> 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
> 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 XXX.XXXX.fr
> This is the only modification made in this file.
> It is written in the doc:
> *"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 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.
> Can someone explain this step? Are there any examples showing how to do
> this?
>
> I tried anyway to activate the virtual host
>
> *"ln -s /etc/apache2/sites-available/lizmap.conf
> /etc/apache2/sites-enabled/lizmap.conf"*
>
> But when I try to restart apache, I can't. With these error messages:
>
> root at 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: https://httpd.apache.org/docs/2.4/
> 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
>
>
>
> The error message seems to refer to line 24 of the lizmap.conf file. This
> line is:
>
> include fastcgi_params;
>
>
>
> In advance, thanks a lot for your help.
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/lizmap
>
--
--------------------------------------------------------------------
Arnaud Vandecasteele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20230424/7cec82fe/attachment.htm>
More information about the Lizmap
mailing list