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 11/12/2023, à 18:09

adenVed

Apache2 ne fonctionne pas

Bonjour à tous,

J'ai un serveur LimeSurvey qui utilise apache2 pour l'accès web. Depuis quelques temps, le serveur web n'est plus accessible en local.
J'ai déjà pas mal cherché mais je sèche un peu, et franchement je ne vois plus ou chercher. Je suis loin d'être expert linux, c'est un serveur que j'ai repris récemment et je n'ai aucune doc, c'est pour ca que je poste ici.

Voilà les résultats des commandes que j'ai utilisé :

root@limesurvey2:/etc/apache2# systemctl status apache2
Failed to dump process list, ignoring: Input/output error
* apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           `-apache2-systemd.conf
   Active: active (running) since Mon 2023-12-11 15:52:36 UTC; 9min ago
  Process: 1900 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 1905 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
    Tasks: 6 (limit: 4915)
   CGroup: /system.slice/apache2.service

Dec 11 15:52:36 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 11 15:52:36 limesurvey2 systemd[1905]: Failed to attach 1905 to compat systemd cgroup /system.slice/apache2.service: No such file or directory
Dec 11 15:52:36 limesurvey2 systemd[1]: Started The Apache HTTP Server.
 root@limesurvey2:/etc/apache2# apache2ctl configtest
Syntax OK
root@limesurvey2:/etc/apache2# ss -tlnp
State                      Recv-Q                      Send-Q                                            Local Address:Port                                            Peer Address:Port                      
LISTEN                     0                           80                                                    127.0.0.1:3306                                                 0.0.0.0:*                          users:(("mysqld",pid=453,fd=17))
LISTEN                     0                           128                                               127.0.0.53%lo:53                                                   0.0.0.0:*                          users:(("systemd-resolve",pid=168,fd=13))
LISTEN                     0                           128                                                     0.0.0.0:22                                                   0.0.0.0:*                          users:(("sshd",pid=195,fd=3))
LISTEN                     0                           100                                                   127.0.0.1:25                                                   0.0.0.0:*                          users:(("master",pid=365,fd=13))
LISTEN                     0                           128                                                   127.0.0.1:6010                                                 0.0.0.0:*                          users:(("sshd",pid=1658,fd=10))
LISTEN                     0                           128                                                           *:80                                                         *:*                          users:(("apache2",pid=1914,fd=4),("apache2",pid=1913,fd=4),("apache2",pid=1912,fd=4),("apache2",pid=1911,fd=4),("apache2",pid=1910,fd=4),("apache2",pid=1909,fd=4))
LISTEN                     0                           128                                                        [::]:22                                                      [::]:*                          users:(("sshd",pid=195,fd=4))
LISTEN                     0                           100                                                       [::1]:25                                                      [::]:*                          users:(("master",pid=365,fd=14))
LISTEN                     0                           128                                                       [::1]:6010                                                    [::]:*                          users:(("sshd",pid=1658,fd=9))
LISTEN                     0                           128                                                           *:443                                                        *:*                          users:(("apache2",pid=1914,fd=6),("apache2",pid=1913,fd=6),("apache2",pid=1912,fd=6),("apache2",pid=1911,fd=6),("apache2",pid=1910,fd=6),("apache2",pid=1909,fd=6))
root@limesurvey2:/etc/apache2#

les résultats récents de journalctl -u apache2.service :

Dec 02 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 02 06:20:02 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 03 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 03 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 04 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 04 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 05 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 05 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 06 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 06 06:20:02 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 06 16:09:03 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 06 16:09:03 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 06 16:21:43 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:44 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:44 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:44 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:44 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:44 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:45 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:45 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:45 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:45 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:21:46 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:36:28 limesurvey2 systemd[1]: Stopping The Apache HTTP Server...
Dec 06 16:36:28 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 06 16:36:29 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 06 16:36:29 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 06 16:36:29 limesurvey2 systemd[1]: Stopped The Apache HTTP Server.
Dec 06 16:36:54 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 06 16:36:54 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 06 16:36:54 limesurvey2 systemd[1]: Started The Apache HTTP Server.
Dec 07 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 07 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 08 06:20:02 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 08 06:20:02 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 08 15:02:31 limesurvey2 systemd[1]: Stopping The Apache HTTP Server...
Dec 08 15:02:31 limesurvey2 systemd[1]: Stopped The Apache HTTP Server.
Dec 08 15:02:39 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 08 15:02:39 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 08 15:02:39 limesurvey2 systemd[1]: Started The Apache HTTP Server.
Dec 09 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 09 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 10 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 10 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 11 06:20:01 limesurvey2 systemd[1]: Reloading The Apache HTTP Server.
Dec 11 06:20:01 limesurvey2 systemd[1]: Reloaded The Apache HTTP Server.
Dec 11 13:29:24 limesurvey2 systemd[1]: Stopping The Apache HTTP Server...
Dec 11 13:29:24 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 13:29:24 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 13:29:24 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 13:29:24 limesurvey2 systemd[1]: Stopped The Apache HTTP Server.
Dec 11 13:29:24 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 11 13:29:24 limesurvey2 systemd[1]: Started The Apache HTTP Server.
Dec 11 15:06:46 limesurvey2 systemd[1]: Stopping The Apache HTTP Server...
Dec 11 15:06:46 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:06:46 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:06:46 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:06:46 limesurvey2 systemd[1]: Stopped The Apache HTTP Server.
Dec 11 15:06:53 limesurvey2 systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Dec 11 15:06:53 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 11 15:06:53 limesurvey2 systemd[176]: Failed to attach 176 to compat systemd cgroup /system.slice/apache2.service: No such file or directory
Dec 11 15:06:53 limesurvey2 systemd[1]: Started The Apache HTTP Server.
Dec 11 15:34:19 limesurvey2 systemd[1]: Stopping The Apache HTTP Server...
Dec 11 15:34:19 limesurvey2 systemd[1781]: Failed to attach 1781 to compat systemd cgroup /system.slice/apache2.service: No such file or directory
Dec 11 15:34:19 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:34:19 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:34:19 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:34:19 limesurvey2 systemd[1]: apache2.service: Failed to kill control group /system.slice/apache2.service, ignoring: Input/output error
Dec 11 15:34:19 limesurvey2 systemd[1]: Stopped The Apache HTTP Server.
Dec 11 15:34:19 limesurvey2 systemd[1]: Starting The Apache HTTP Server...
Dec 11 15:34:19 limesurvey2 systemd[1786]: Failed to attach 1786 to compat systemd cgroup /system.slice/apache2.service: No such file or directory
Dec 11 15:34:19 limesurvey2 apachectl[1786]: httpd (pid 259) already running
Dec 11 15:34:19 limesurvey2 systemd[1]: Started The Apache HTTP Server.

Le contenu du fichier /var/log/apache2/error.log :

[Mon Dec 11 06:20:01.891480 2023] [mpm_prefork:notice] [pid 243] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1g configured -- resuming normal operations
[Mon Dec 11 06:20:01.891501 2023] [core:notice] [pid 243] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 11 13:29:24.480999 2023] [mpm_prefork:notice] [pid 243] AH00169: caught SIGTERM, shutting down
[Mon Dec 11 13:29:24.582789 2023] [mpm_prefork:notice] [pid 14587] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1g configured -- resuming normal operations
[Mon Dec 11 13:29:24.582859 2023] [core:notice] [pid 14587] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 11 15:06:46.500509 2023] [mpm_prefork:notice] [pid 14587] AH00169: caught SIGTERM, shutting down
[Mon Dec 11 15:06:53.397226 2023] [mpm_prefork:notice] [pid 259] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1g configured -- resuming normal operations
[Mon Dec 11 15:06:53.397474 2023] [core:notice] [pid 259] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 11 15:34:19.426186 2023] [mpm_prefork:notice] [pid 259] AH00169: caught SIGTERM, shutting down
[Mon Dec 11 15:52:36.485423 2023] [mpm_prefork:notice] [pid 1909] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1g configured -- resuming normal operations
[Mon Dec 11 15:52:36.485483 2023] [core:notice] [pid 1909] AH00094: Command line: '/usr/sbin/apache2'

Voilà si vous avez une idée je suis preneur, cela m'évitera peut être de remonter tout ca en urgence.
Merci beaucoup !

Dernière modification par adenVed (Le 11/12/2023, à 18:22)

Hors ligne

#2 Le 11/12/2023, à 18:17

xubu1957

Re : Apache2 ne fonctionne pas

Bonjour,

Pour ajouter toi-même les balises code à ton message #1 :     Merci        wink

  • Cliquer sur  le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message

moko138 a écrit :

1) Les balises-code sont les < > (crochets bleus) de la barre de mise en forme.
Balisesmoko138.jpg
_ _ _

3) /!\  Si vous avez plusieurs retours à donner, séparez-les bien (toujours pour la lisibilité) :

comme
cela.

Comme demandé dans le premier message du tutoriel Retour utilisable de commande


Évites de cliquer à tout va, tu viens d'ouvrir cinq discussions.  Notre Modération vient d'en supprimer quatre.

Dernière modification par xubu1957 (Le 11/12/2023, à 18:23)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#3 Le 11/12/2023, à 18:30

adenVed

Re : Apache2 ne fonctionne pas

Merci pour l'info, première fois que je poste, je m'en rappellerais. Désolé pour les quatres autres postes !
J'aimerais modifier le titre mais étant donné que j'arrive pas a trouver l'erreur je ne sais pas vraiment quoi mettre.
Merci encore, bonne soirée

Hors ligne

#4 Le 11/12/2023, à 18:39

xubu1957

Re : Apache2 ne fonctionne pas

Montre aussi d'éventuels paquets cassés :

dpkg -l | grep -v ^ii

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne