# Installation qgis server

**URL:** <https://www.debian-fr.org/t/installation-qgis-server/85361>\
**Category:** Support Debian\
**Created:** [Septembre 17, 2021, 12:12 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361 "2021-09-17T12:12:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 17, 2021, 12:12 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/1 "2021-09-17T12:12:28Z")

</div>

bonjour!  
entante que débutant au niveau des installations qgis j’ai quelques questions concernant l’installation de qgis server :  
pourquoi mon server apache ne trouve pas qgis server?  
quelqu’ un a t il déjà a réussir à l’installer?  
voici les images

 ![qgis1](https://www.debian-fr.org/uploads/default/original/2X/2/2d864ab7ad5380b4ee115b3cac5f629bd832fbf5.png)  
 ![qgis2](https://www.debian-fr.org/uploads/default/original/2X/b/ba0ed40e00d24dd473feab1efd2214a2c062e350.png)

 ![qgi3](https://www.debian-fr.org/uploads/default/original/2X/8/8341415e9ff7df8ba42d7b43427f18569136e218.png)  
 ![qgis4](https://www.debian-fr.org/uploads/default/original/2X/8/8d656f007949c374db18ff7a6c38dc650973e3a0.png)  
en entrant dans le navigateur :  
[http://localhost/qgisserver/cgi-bin/qgis\_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities](http://localhost/qgisserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities)  
ce ci m’envoie  
 ![DSC_0028](https://www.debian-fr.org/uploads/default/original/2X/1/1bb1f40e9928ab338cc7131fe11457f4e64c647c.jpeg)

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 17, 2021, 3:51 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/2 "2021-09-17T15:51:05Z")

</div>

Bonjour,

C’est ce qui arrive quand on copie/colle des commandes ou des fichiers de configuration sans chercher à les comprendre. 😉

Ton navigateur est redirigé vers qgis.demo, qui bien entendu n’existe pas et ne t’appartient pas.

Dans ton hôte virtuel tu as dû coller :

```auto
ServerName qgis.demo

```

Au lieu d’écrire :

```auto
ServerName localhost

```

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 8:40 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/3 "2021-09-29T08:40:02Z")

</div>

voici une erreur que je peut pas résoudre

 ![Capture d’écran du 2021-09-29 11-38-31](https://www.debian-fr.org/uploads/default/original/2X/d/da72e6032350f78c42961bfd252f710474107874.png)  
quoi faire

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 29, 2021, 10:07 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/4 "2021-09-29T10:07:38Z")

</div>

Bonjour,

Merci de faire un copier/coller des commandes et leurs retours plutôt que de poster des copies de l’ensemble de l’écran. Ce sera beaucoup plus léger et lisible.

Visiblement le serveur Apache n’arrive pas à se lancer à cause d’une erreur dans un fichier de configuration. Il faut donner le retour (en _root_) de :

```auto
apache2ctl -t

```

N.B. : pour obtenir un shell root il faut utiliser `su -` ou `sudo -i` et pas uniqument `su`

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 10:26 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/5 "2021-09-29T10:26:38Z")

</div>

root@debian:~# apache2ctl -t  
/usr/sbin/apache2ctl: 208: /usr/sbin/apache2ctl: /usr/sbin/apache2: not found  
Action ‹&nbsp;-t&nbsp;› failed.  
The Apache error log may have more information.  
root@debian:~#

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 29, 2021, 11:14 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/6 "2021-09-29T11:14:34Z")

</div>

Merci de lire le N.B. de ma réponse précédente. Tu n’es pas dans un vrai shell root.

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 11:25 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/7 "2021-09-29T11:25:22Z")

</div>

marc@debian:~$ su -  
Mot de passe :  
root@debian:~# apache2ctl -t  
/usr/sbin/apache2ctl: 208: /usr/sbin/apache2ctl: /usr/sbin/apache2: not found  
Action ‹&nbsp;-t&nbsp;› failed.  
The Apache error log may have more information.  
root@debian:~#

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 29, 2021, 11:39 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/8 "2021-09-29T11:39:08Z")

</div>

Ah ? Si _apache2_ n’est pas trouvé c’est plus grave…  
Peut-on voir :

```auto
ls -l /usr/sbin/apache2

```

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 11:56 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/9 "2021-09-29T11:56:32Z")

</div>

root@debian:~# ls -l /usr/sbin/apache2  
ls: impossible d’accéder à ‹&nbsp;/usr/sbin/apache2&nbsp;›: Aucun fichier ou dossier de ce type  
root@debian:~#

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 29, 2021, 12:03 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/10 "2021-09-29T12:03:05Z")

</div>

Tu as donc désinstallé le paquet apache2-bin (ou d’autres paquets apache), ou pire supprimé manuellement /usr/sbin/apache2.

Pour réinstaller :

```auto
apt install --reinstall apache2-bin  
apt-mark auto apache2-bin

```

Ensuite :

```auto
systemctl start apache2

```

pour relancer apache2. Et en cas d’erreur le retour de :

```auto
apache2ctl -t

```

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 12:13 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/11 "2021-09-29T12:13:07Z")

</div>

root@debian:~# apt install --reinstall apache2-bin  
Lecture des listes de paquets… Fait  
Construction de l’arbre des dépendances  
Lecture des informations d’état… Fait  
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 0 non mis à jour.  
Il est nécessaire de prendre 0 o/1 307 ko dans les archives.  
Après cette opération, 0 o d’espace disque supplémentaires seront utilisés.  
(Lecture de la base de données… 170602 fichiers et répertoires déjà installés.)  
Préparation du dépaquetage de …/apache2-bin\_2.4.38-3+deb10u5\_amd64.deb …  
Dépaquetage de apache2-bin (2.4.38-3+deb10u5) sur (2.4.38-3+deb10u5) …  
Paramétrage de apache2-bin (2.4.38-3+deb10u5) …  
Traitement des actions différées (« triggers ») pour man-db (2.8.5-2) …  
root@debian:~# apt-mark auto apache2-bin  
apache2-bin était déjà marqué comme installé automatiquement.  
root@debian:~# systemctl start apache2  
root@debian:~# systemctl status apache.service  
Unit apache.service could not be found.  
root@debian:~# systemctl status apache2.service  
● apache2.service - The Apache HTTP Server  
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)  
Active: active (running) since Wed 2021-09-29 15:08:16 EAT; 2min 27s ago  
Docs: [Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4](https://httpd.apache.org/docs/2.4/)  
Process: 19119 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)  
Main PID: 19123 (apache2)  
Tasks: 55 (limit: 1998)  
Memory: 13.0M  
CGroup: /system.slice/apache2.service  
├─19123 /usr/sbin/apache2 -k start  
├─19124 /usr/sbin/apache2 -k start  
└─19125 /usr/sbin/apache2 -k start

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 12:14 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/12 "2021-09-29T12:14:36Z")

</div>

merci mon ami ça ma bien aider tes conseilles

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 12:37 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/13 "2021-09-29T12:37:08Z")

</div>

comment çà ce fait que fcgid n existe alors que j ai bien installer et aussi quand je reload apache le message job for apach2service faild  
root@debian:/# apt-get install libapache2-mod-fcgid  
Lecture des listes de paquets… Fait  
Construction de l’arbre des dépendances  
Lecture des informations d’état… Fait  
libapache2-mod-fcgid est déjà la version la plus récente (1:2.3.9-4).  
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.  
root@debian:/# a2enmod fcgid  
ERROR: Module fcgid does not exist!  
root@debian:/# systemctl reload apache2  
Job for apache2.service failed.  
See «&nbsp;systemctl status apache2.service&nbsp;» and «&nbsp;journalctl -xe&nbsp;» for details.  
root@debian:/# systemctl status apache2.service  
● apache2.service - The Apache HTTP Server  
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)  
Active: active (running) since Wed 2021-09-29 15:08:16 EAT; 30min ago  
Docs: [Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4](https://httpd.apache.org/docs/2.4/)  
Process: 19119 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)  
Process: 19500 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)  
Main PID: 19123 (apache2)  
Tasks: 55 (limit: 1998)  
Memory: 10.3M  
CGroup: /system.slice/apache2.service  
├─19123 /usr/sbin/apache2 -k start  
├─19124 /usr/sbin/apache2 -k start  
└─19125 /usr/sbin/apache2 -k start

sept. 29 15:08:15 debian systemd[1]: Starting The Apache HTTP Server…  
sept. 29 15:08:16 debian apachectl[19119]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, usi  
sept. 29 15:08:16 debian systemd[1]: Started The Apache HTTP Server.  
sept. 29 15:38:03 debian systemd[1]: Reloading The Apache HTTP Server.  
sept. 29 15:38:05 debian apachectl[19500]: AH00526: Syntax error on line 12 of /etc/apache2/sites-enabled/qgis.demo.conf:  
sept. 29 15:38:05 debian apachectl[19500]: Invalid command ‹&nbsp;FcgidIOTimeout&nbsp;›, perhaps misspelled or defined by a module not included in  
sept. 29 15:38:05 debian apachectl[19500]: Action ‹&nbsp;graceful&nbsp;› failed.  
sept. 29 15:38:05 debian apachectl[19500]: The Apache error log may have more information.  
sept. 29 15:38:05 debian systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE  
sept. 29 15:38:05 debian systemd[1]: Reload failed for The Apache HTTP Server.[quote=«&nbsp;leonard1, post:12, topic:85361, full:true&nbsp;»]  
merci mon ami ça ma bien aider tes conseilles  
[/quote]

---

<div class="post-metadata">

**Author:** ![leonard1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@leonard1](https://www.debian-fr.org/u/leonard1)\
**Post date:** [Septembre 29, 2021, 1:03 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/14 "2021-09-29T13:03:15Z")

</div>

#Bruno1  
apres avoir executer les commandes precedant mon apache ne marche plus  
root@debian:/# ls -l /usr/sbin/apache2  
-rwxr-xr-x 1 root root 687944 juin 10 13:13 /usr/sbin/apache2

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Septembre 29, 2021, 2:32 UTC](https://www.debian-fr.org/t/installation-qgis-server/85361/15 "2021-09-29T14:32:35Z")

</div>

Je ne sais pas ce que tu as bricolé… Tu as certainement supprimé des fichiers système manuellement.  
Retour de :

```auto
ls -l /usr/lib/apache2/modules/mod_fcgid.so 

```
