Message Apache

Bonjour a tous,
J’ai ce message plusieurs fois par jour depuis quelques temps, Jeedom fonctionne normalement mais c’est pas propre, si quelqu’un a une idée ?.
Les messages sont dans la log 'http.error’

0013|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0014|[Thu Jun 12 12:08:58.785786 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0015|[Thu Jun 12 12:08:58.785810 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'

Et quand je lance cette commande ‹ /usr/sbin/apache2 › j’ai ce resultat :

[Thu Jun 12 19:01:35.735700 2025] [core:warn] [pid 1352047:tid 1352047] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

Merci

En rouge c’est La mise a jour de ZigbeeLinker en attente. (j’attends toujours avant de la faire car j’ai eu souvent des problèmes après MAJ)

Message plusieurs fois par jour :

0000|[Thu Jun 12 03:47:28.728428 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0001|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0002|[Thu Jun 12 03:47:28.799385 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0003|[Thu Jun 12 03:47:28.799407 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'
0004|[Thu Jun 12 03:47:42.504227 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0005|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0006|[Thu Jun 12 03:47:42.565470 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0007|[Thu Jun 12 03:47:42.565494 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'
0008|[Thu Jun 12 12:08:44.874559 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0009|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0010|[Thu Jun 12 12:08:44.945870 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0011|[Thu Jun 12 12:08:44.945894 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'
0012|[Thu Jun 12 12:08:58.720818 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0013|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0014|[Thu Jun 12 12:08:58.785786 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0015|[Thu Jun 12 12:08:58.785810 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'
0016|[Fri Jun 13 06:18:03.213622 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0017|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0018|[Fri Jun 13 06:18:03.283475 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0019|[Fri Jun 13 06:18:03.283495 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'
0020|[Fri Jun 13 06:18:17.012296 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00171: Graceful restart requested, doing restart
0021|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0022|[Fri Jun 13 06:18:17.070320 2025] [mpm_prefork:notice] [pid 1068:tid 1068] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0023|[Fri Jun 13 06:18:17.070342 2025] [core:notice] [pid 1068:tid 1068] AH00094: Command line: '/usr/sbin/apache2'

Bonjour,

Ce message est juste un avertissement sans gravité. Ton raspberry a un nom d’hote (qu’on appelle FQDN) et Apache n’arrive pas à faire le lien entre l’ip 127.0.1.1 (une adresse IP spéciale qui renvoi sur ton raspberry qui héberge Jeedom) et le FQDN de ton raspberry.
Si tu veux vraiment faire disparaître ce message (qui encore une fois est sans gravité), voici la marche à suivre (je ne connais pas ton niveau, donc je vais beaucoup détaillé).
Pour commencer, il te faut connaître le FQDN de ton raspberry. Pour cela, tape la commande hostname -f qui va t’afficher ton FQDN. Ensuite, ouvre le fichier /etc/hosts avec la commande sudo nano /etc/hosts. Tu devrais avoir une ligne qui commence par 127.0.1.1 (très certainement 127.0.1.1 localhost). Modifie cette ligne afin d’avoir « 127.0.1.1 FQDN localhost » (en remplaçant FQDN par le FQDN de ton raspberry) puis enregistre en appuyant sur CTRL + O puis sort avec CRTL + X.
Il ne te reste plus qu’à redémarrer Apache avec la commande sudo systemctl restart apache2.service
Tu ne devrais plus avoir d’avertissement ensuite.

3 « J'aime »

Merci @fate,
J’ai fait la modif et ça semble OK pour l’instant mais comme j’ai ces erreurs que de temps en temps je confirmerai.

Encore Merci

Pas de chance : ce soir

0005|AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
0006|[Fri Jun 13 21:08:51.645036 2025] [mpm_prefork:notice] [pid 1724088:tid 1724088] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured -- resuming normal operations
0007|[Fri Jun 13 21:08:51.645054 2025] [core:notice] [pid 1724088:tid 1724088] AH00094: Command line: '/usr/sbin/apache2'

Bonjour,

Je pense que c’est plutôt le fichier : /etc/apache2/apache2.conf qui est à modifier.

Tout est bien décrit ici :
Apache Configuration Error AH00558: Could not reliably determine the server’s fully qualified domain name | DigitalOcean

Je résume :
Tester en SSH
sudo apachectl configtest

L’avertissement suivant est alors présent :

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

Corriger :
sudo nano /etc/apache2/apache2.conf
En ajoutant à la fin du fichier de configuration :

ServerName 127.0.1.1

=> Sauvegarder

Contrôler :
sudo apachectl configtest

Relancer : (pour prise en compte) :
sudo systemctl reload apache2.service

Et regarder le log dans Jeedom

1 « J'aime »

Tu peux essayer la méthode donné par Fabrice. En fait y a deux moyen de résoudre ce problème. Soit tu modifies les fichiers de conf apache pour outrepasser la config du fichier hosts (la méthode donnée par Fabrice), soit tu modifies le fichier hosts pour régler le problème de manière globale (la méthode que je t’ai donné et qui vient de cette page .
La seconde méthode avait fonctionnée pour moi.

Merci @fate, @Fabrice ,
Avec les 2 modifs plus de message. Super
J’ai enfin une « log » sans messages, mais c’est bizarre que je sois un des seuls a avoir eu ce problème.

Merci Encore

Non, je l’ai aussi, uniquement au redémarrage ou lors d’une fin de période de grâce (?).
Et un pote à moi a pareil, c’est juste que l’on ne fait pas attention, car, comme l’a dit fate , c’est un simple avertissement.

Ce qui est étonnant, c’est si votre Apache redémarre tout le temps.