Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/04/2019, à 08:46

Anthony53320

[Résolu] Erreur apache2 pas possible de relancer les services

Bonjour,

Je rencontre quelques difficultés avec certains éléments installé (Glpi / Joomla / qbittorrent / phpmyadmin) si je vais voir côté apache pour relancer le service, ce dernier ne semble pas / plus de lancer. Voici le message que j'obtient

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

Voici les logs du fichier /var/log/apache2/error.log

[Sun Mar 10 06:25:06.452545 2019] [mpm_prefork:notice] [pid 1925] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Mar 10 06:25:06.452589 2019] [core:notice] [pid 1925] AH00094: Command line: '/usr/sbin/apache2'
[Sat Mar 16 08:16:27.284794 2019] [mpm_prefork:notice] [pid 1925] AH00169: caught SIGTERM, shutting down
[Sat Mar 16 08:16:27.444545 2019] [mpm_prefork:notice] [pid 9889] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Mar 16 08:16:27.444667 2019] [core:notice] [pid 9889] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 07 17:19:52.947929 2019] [mpm_prefork:notice] [pid 2277] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Apr 07 17:19:53.404295 2019] [core:notice] [pid 2277] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 07 17:23:37.250225 2019] [mpm_prefork:notice] [pid 2277] AH00169: caught SIGTERM, shutting down
[Sun Apr 07 17:23:56.193644 2019] [mpm_prefork:notice] [pid 23597] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Apr 07 17:23:56.193749 2019] [core:notice] [pid 23597] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 20 21:58:10.498387 2019] [mpm_prefork:notice] [pid 23597] AH00169: caught SIGTERM, shutting down
[Sat Apr 20 22:00:11.336812 2019] [mpm_prefork:notice] [pid 2163] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Apr 20 22:00:11.356422 2019] [core:notice] [pid 2163] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 20 22:16:56.231771 2019] [mpm_prefork:notice] [pid 2163] AH00169: caught SIGTERM, shutting down
[Sun Apr 21 07:37:26.983004 2019] [mpm_prefork:notice] [pid 1993] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Apr 21 07:37:27.331814 2019] [core:notice] [pid 1993] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 21 07:42:58.727325 2019] [mpm_prefork:notice] [pid 1993] AH00169: caught SIGTERM, shutting down
[Sun Apr 21 08:01:36.338838 2019] [mpm_prefork:notice] [pid 1955] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Apr 21 08:01:36.408533 2019] [core:notice] [pid 1955] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 24 07:25:46.875492 2019] [authz_core:error] [pid 2068] [client 192.168.1.17:63736] AH01630: client denied by server configuration: /opt/glpi
[Wed Apr 24 07:25:46.972292 2019] [authz_core:error] [pid 2068] [client 192.168.1.17:63736] AH01630: client denied by server configuration: /opt/glpi
[Wed Apr 24 07:48:31.668065 2019] [mpm_prefork:notice] [pid 1955] AH00169: caught SIGTERM, shutting down
[Wed Apr 24 07:48:31.833378 2019] [mpm_prefork:notice] [pid 8424] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 24 07:48:31.833487 2019] [core:notice] [pid 8424] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 24 08:10:55.966478 2019] [core:alert] [pid 8430] [client 192.168.1.11:44956] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:11:45.022427 2019] [core:alert] [pid 14503] [client 192.168.1.11:45086] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:12:52.827083 2019] [core:alert] [pid 8436] [client 192.168.1.11:45412] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:13:35.722080 2019] [core:alert] [pid 14503] [client 192.168.1.11:45518] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:13:38.366523 2019] [core:alert] [pid 8629] [client 192.168.1.11:45524] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:13:45.652797 2019] [core:alert] [pid 8612] [client 192.168.1.11:45530] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:14:38.713389 2019] [core:alert] [pid 14871] [client 192.168.1.11:45758] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:14:41.531798 2019] [core:alert] [pid 8436] [client 192.168.1.11:45764] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:14:43.136600 2019] [core:alert] [pid 8630] [client 192.168.1.11:45770] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:14:43.799982 2019] [core:alert] [pid 14871] [client 192.168.1.11:45776] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:16:07.882703 2019] [core:alert] [pid 8612] [client 192.168.1.11:46088] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:38:06.078371 2019] [core:alert] [pid 8430] [client 192.168.1.11:50778] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 08:40:45.000908 2019] [mpm_prefork:notice] [pid 8424] AH00169: caught SIGTERM, shutting down
[Wed Apr 24 08:40:45.172335 2019] [mpm_prefork:notice] [pid 24432] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Apr 24 08:40:45.172448 2019] [core:notice] [pid 24432] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 24 08:41:31.195280 2019] [core:alert] [pid 24438] [client 192.168.1.11:51512] /opt/glpi/files/.htaccess: Require not allowed here
[Wed Apr 24 09:00:20.413403 2019] [php7:error] [pid 24722] [client 192.168.1.17:53956] script '/var/www/html/index.php' not found or unable to stat
[Wed Apr 24 09:00:22.593205 2019] [php7:error] [pid 24722] [client 192.168.1.17:53956] script '/var/www/html/index.php' not found or unable to stat
[Sat Apr 27 08:00:06.666617 2019] [negotiation:error] [pid 30179] (2)No such file or directory: [client 192.168.1.11:50510] AH00683: cannot access type map file: /var/$
[Sat Apr 27 08:00:06.743067 2019] [php7:error] [pid 4455] [client 192.168.1.11:50512] script '/var/www/html/jCwudHLD.phtml' not found or unable to stat
[Sat Apr 27 08:00:06.806630 2019] [php7:error] [pid 4455] [client 192.168.1.11:50512] script '/var/www/html/jCwudHLD.php' not found or unable to stat
[Sat Apr 27 08:00:06.842019 2019] [php7:error] [pid 24444] [client 192.168.1.11:50514] script '/var/www/html/index.php' not found or unable to stat
[Sat Apr 27 08:00:06.886894 2019] [core:error] [pid 12905] [client 192.168.1.11:50516] AH00126: Invalid URI in request GET . HTTP/1.0
[Sat Apr 27 08:00:06.921369 2019] [php7:error] [pid 3158] [client 192.168.1.11:50518] script '/var/www/html/index.php' not found or unable to stat
[Sat Apr 27 08:00:06.948312 2019] [core:error] [pid 3158] [client 192.168.1.11:50518] AH00135: Invalid method in request DEBUG / HTTP/1.1
[Sat Apr 27 08:00:06.955838 2019] [core:error] [pid 31012] [client 192.168.1.11:50522] AH00135: Invalid method in request TRACK / HTTP/1.0
[Sat Apr 27 08:00:06.956963 2019] [core:error] [pid 11596] [client 192.168.1.11:50524] AH00135: Invalid method in request TRACK / HTTP/1.0

Merci pour votre aide

Dernière modification par Anthony53320 (Le 30/04/2019, à 13:55)

Hors ligne

#2 Le 29/04/2019, à 16:37

bruno

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Bonjour,

Il y a beaucoup d'erreurs dans tes logs :
- /opt/glpi/files/.htaccess qui contient une directive erronée ;
- des fichiers qui n'existent pas ou ne sont pas acessibles : /var/www/html/index.php, /var/www/html/jCwudHLD.phtml, /var/www/html/jCwudHLD.php
- et surtout des erreurs bloquantes dans les requeêtes : Invalid URI in request GET,  Invalid method in request DEBUG, Invalid method in request TRACK

Il faut nous montrer ta configuratiopn Apache, quel fichiers ti as modifiés et leur contenu.

On peut déjà commencer par vérifier la syntaxe des fichiers de configuration :

sudo apach2ctl -t

voire aussi :

sudo apach2ctl -t -D DUMP_VHOSTS 

Hors ligne

#3 Le 29/04/2019, à 16:57

Anthony53320

Re : [Résolu] Erreur apache2 pas possible de relancer les services

C'est assez étrange car je n'ai rien supprimé... ou alors je l'ai fais de manière totalement involontaire

Pour la syntaxe

Syntax OK
VirtualHost configuration:*:80 srvmedias.home (/etc/apache2/sites-enabled/000-default.conf:1)

Hors ligne

#4 Le 29/04/2019, à 17:11

bruno

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Tu n'as pas d’erreur et seul l'hôte virtuel par défaut est activé.
Que donne un redémarrage d'Apache ?

sudo systemctl restart apache2

Hors ligne

#5 Le 29/04/2019, à 20:48

Anthony53320

Re : [Résolu] Erreur apache2 pas possible de relancer les services

La même chose que dans mon post 1

Très étrange, tout fonctionné correctement samedi et hier matin, je ne comprend pas

Hors ligne

#6 Le 29/04/2019, à 20:55

bruno

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Il faut regarder les logs immédiatement après avoir tenté de relancer apache et aussi regarder la sortie de :

journalctl -u apache2

Hors ligne

#7 Le 29/04/2019, à 20:58

Anthony53320

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Ok voilà ce que ça donne

avril 29 08:20:09 srvmedias systemd[1]: Starting The Apache HTTP Server...
avril 29 08:20:13 srvmedias apachectl[1558]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
avril 29 08:20:13 srvmedias apachectl[1558]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
avril 29 08:20:13 srvmedias apachectl[1558]: no listening sockets available, shutting down
avril 29 08:20:13 srvmedias apachectl[1558]: AH00015: Unable to open logs
avril 29 08:20:13 srvmedias apachectl[1558]: Action 'start' failed.
avril 29 08:20:13 srvmedias apachectl[1558]: The Apache error log may have more information.
avril 29 08:20:13 srvmedias systemd[1]: apache2.service: Control process exited, code=exited status=1
avril 29 08:20:13 srvmedias systemd[1]: apache2.service: Failed with result 'exit-code'.
avril 29 08:20:13 srvmedias systemd[1]: Failed to start The Apache HTTP Server.
avril 29 08:38:18 srvmedias systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
avril 29 08:38:38 srvmedias systemd[1]: Starting The Apache HTTP Server...
avril 29 08:38:38 srvmedias apachectl[9070]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
avril 29 08:38:38 srvmedias apachectl[9070]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
avril 29 08:38:38 srvmedias apachectl[9070]: no listening sockets available, shutting down
avril 29 08:38:38 srvmedias apachectl[9070]: AH00015: Unable to open logs
avril 29 08:38:38 srvmedias apachectl[9070]: Action 'start' failed.
avril 29 08:38:38 srvmedias apachectl[9070]: The Apache error log may have more information.
avril 29 08:38:38 srvmedias systemd[1]: apache2.service: Control process exited, code=exited status=1
avril 29 08:38:38 srvmedias systemd[1]: apache2.service: Failed with result 'exit-code'.
avril 29 08:38:38 srvmedias systemd[1]: Failed to start The Apache HTTP Server.
avril 29 20:47:17 srvmedias systemd[1]: Starting The Apache HTTP Server...
avril 29 20:47:17 srvmedias apachectl[18078]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
avril 29 20:47:17 srvmedias apachectl[18078]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
avril 29 20:47:17 srvmedias apachectl[18078]: no listening sockets available, shutting down
avril 29 20:47:17 srvmedias apachectl[18078]: AH00015: Unable to open logs
avril 29 20:47:17 srvmedias apachectl[18078]: Action 'start' failed.
avril 29 20:47:17 srvmedias apachectl[18078]: The Apache error log may have more information.
avril 29 20:47:17 srvmedias systemd[1]: apache2.service: Control process exited, code=exited status=1
avril 29 20:47:17 srvmedias systemd[1]: apache2.service: Failed with result 'exit-code'.
avril 29 20:47:17 srvmedias systemd[1]: Failed to start The Apache HTTP Server.
avril 29 20:56:49 srvmedias systemd[1]: Starting The Apache HTTP Server...
avril 29 20:56:49 srvmedias apachectl[23925]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
avril 29 20:56:49 srvmedias apachectl[23925]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
avril 29 20:56:49 srvmedias apachectl[23925]: no listening sockets available, shutting down
avril 29 20:56:49 srvmedias apachectl[23925]: AH00015: Unable to open logs
avril 29 20:56:49 srvmedias apachectl[23925]: Action 'start' failed.
avril 29 20:56:49 srvmedias apachectl[23925]: The Apache error log may have more information.

Hors ligne

#8 Le 29/04/2019, à 23:02

bruno

Re : [Résolu] Erreur apache2 pas possible de relancer les services

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

Tu as déjà un service en écoute sur le port 80 ce qui empêche Apache de se lancer.
Tu as du installer un autre serveur web (nginx, xampp ?) ou configurer un autre service sur ce port.

Hors ligne

#9 Le 30/04/2019, à 06:47

Anthony53320

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Xamp mais ça fait longtemps qu'il est installé, en même temps qu'Apche2 ce qui est bizzare c'est que si je lance l'adresse IP :80 j'obient bien ce message

Il s'agit de la page d'accueil par défaut utilisée pour tester le bon fonctionnement du serveur Apache2 après l'installation sur les systèmes Ubuntu. Il est basé sur la page équivalente sur Debian, à partir de laquelle le paquetage Ubuntu Apache est dérivé. Si vous pouvez lire cette page, cela signifie que le serveur HTTP Apache installé sur ce site fonctionne correctement. Vous devez remplacer ce fichier (situé à /var/www/html/index.html ) avant de continuer à utiliser votre serveur HTTP.

Si vous êtes un utilisateur normal de ce site Web et que vous ne savez pas de quoi cette page parle, cela signifie probablement que le site est actuellement indisponible pour des raisons de maintenance. Si le problème persiste, veuillez contacter l'administrateur du site.

Voici ce que donne la commande

sudo lsof -i:80
sudo lsof -i:80
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   1737     root    6u  IPv4  29724      0t0  TCP *:http (LISTEN)
nginx   1737     root    7u  IPv6  29725      0t0  TCP *:http (LISTEN)
nginx   1740 www-data    6u  IPv4  29724      0t0  TCP *:http (LISTEN)
nginx   1740 www-data    7u  IPv6  29725      0t0  TCP *:http (LISTEN)
nginx   1741 www-data    6u  IPv4  29724      0t0  TCP *:http (LISTEN)
nginx   1741 www-data    7u  IPv6  29725      0t0  TCP *:http (LISTEN)
nginx   1744 www-data    6u  IPv4  29724      0t0  TCP *:http (LISTEN)
nginx   1744 www-data    7u  IPv6  29725      0t0  TCP *:http (LISTEN)
nginx   1745 www-data    6u  IPv4  29724      0t0  TCP *:http (LISTEN)
nginx   1745 www-data    7u  IPv6  29725      0t0  TCP *:http (LISTEN)

Visiblement c'est nginx. Mais il sert à quoi et à quoi surtout ?

Nginx (Engine X, prononcez [n-gèn-x]) est un serveur Web asynchrone écrit par Igor Sysoev pour les besoins d'un site russe à très fort trafic. Il peut être configuré pour faire office de serveur reverse proxy Web et de serveur proxy de messagerie électronique (IMAP/POP3). Une partie de la documentation a été traduite du russe vers l'anglais puis vers le français. Ses sources sont disponibles sous une licence de type BSD.

L'idée c'est quoi du coup pour que çà fonctionne à nouveau, supprimé Xamp ? Apache ? le ré-installer ?Supprimier nginx ? Chager le port de l'un de l'un ou l'autr

Merci de ton aide Bruno

Dernière modification par Anthony53320 (Le 30/04/2019, à 07:01)

Hors ligne

#10 Le 30/04/2019, à 08:46

bruno

Re : [Résolu] Erreur apache2 pas possible de relancer les services

En principe, c'est toi qui sait ce que tu as installé sur ta machine et ce qui est utile ou pas.
Apparemment tu as installé nginx sans savoir ce que c'était. Le mieux est de le supprimer complètement :

sudo apt autoremove --purge nginx\*

Hors ligne

#11 Le 30/04/2019, à 13:54

Anthony53320

Re : [Résolu] Erreur apache2 pas possible de relancer les services

Merci effectivement en supprimant çà marche mieux

Merci

Hors ligne