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 02/06/2017, à 12:45

BXDRAKAR

erreur démarrage apache2

Bonjour
Sur le serveur j'ai l'erreur suivant  :

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

J'ai procédé à la première commande j'obtiens le résultat suivant

systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since ven. 2017-06-02 11:48:26 CEST; 1h 50
     Docs: man:systemd-sysv-generator(8)
  Process: 414 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILUR

juin 02 11:48:26 ServerSBT apache2[414]:  *
juin 02 11:48:26 ServerSBT apache2[414]:  * The apache2 configtest failed.
juin 02 11:48:26 ServerSBT apache2[414]: Output of config test was:
juin 02 11:48:26 ServerSBT apache2[414]: apache2: Syntax error on line 219 of /e
juin 02 11:48:26 ServerSBT apache2[414]: Action 'configtest' failed.
juin 02 11:48:26 ServerSBT apache2[414]: The Apache error log may have more info
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Control process exited,
juin 02 11:48:26 ServerSBT systemd[1]: Failed to start LSB: Apache2 web server.
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Unit entered failed stat
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Failed with result 'exit
lines 1-18/18 (END)...skipping...
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since ven. 2017-06-02 11:48:26 CEST; 1h 50
     Docs: man:systemd-sysv-generator(8)
  Process: 414 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILUR

juin 02 11:48:26 ServerSBT apache2[414]:  *
juin 02 11:48:26 ServerSBT apache2[414]:  * The apache2 configtest failed.
juin 02 11:48:26 ServerSBT apache2[414]: Output of config test was:
juin 02 11:48:26 ServerSBT apache2[414]: apache2: Syntax error on line 219 of /e
juin 02 11:48:26 ServerSBT apache2[414]: Action 'configtest' failed.
juin 02 11:48:26 ServerSBT apache2[414]: The Apache error log may have more info
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Control process exited,
juin 02 11:48:26 ServerSBT systemd[1]: Failed to start LSB: Apache2 web server.
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Unit entered failed stat
juin 02 11:48:26 ServerSBT systemd[1]: apache2.service: Failed with result 'exit

Pour la deuxième partie

journalctl -xe
--
-- L'unité (unit) laptop-mode.service a terminé de recharger configuration,
-- avec le résultat done.
juin 02 13:43:05 ServerSBT sshd[3923]: pam_unix(sshd:auth): authentication failure; logname= uid=0 e
juin 02 13:43:07 ServerSBT sshd[3923]: Failed password for root from 116.31.116.45 port 21895 ssh2
juin 02 13:43:09 ServerSBT sshd[3923]: Failed password for root from 116.31.116.45 port 21895 ssh2
juin 02 13:43:11 ServerSBT sshd[3923]: Failed password for root from 116.31.116.45 port 21895 ssh2
juin 02 13:43:12 ServerSBT sshd[3923]: Received disconnect from 116.31.116.45 port 21895:11:  [preau
juin 02 13:43:12 ServerSBT sshd[3923]: Disconnected from 116.31.116.45 port 21895 [preauth]
juin 02 13:43:12 ServerSBT sshd[3923]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty
juin 02 13:43:25 ServerSBT sshd[3922]: pam_unix(sshd:auth): authentication failure; logname= uid=0 e
juin 02 13:43:27 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:29 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:32 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:35 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:37 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:44 ServerSBT sshd[3922]: Failed password for root from 123.170.77.144 port 60268 ssh2
juin 02 13:43:44 ServerSBT sshd[3922]: error: maximum authentication attempts exceeded for root from
juin 02 13:43:44 ServerSBT sshd[3922]: Disconnecting: Too many authentication failures [preauth]
juin 02 13:43:44 ServerSBT sshd[3922]: PAM 5 more authentication failures; logname= uid=0 euid=0 tty
juin 02 13:43:44 ServerSBT sshd[3922]: PAM service(sshd) ignoring max retries; 6 > 3
juin 02 13:43:58 ServerSBT sshd[3936]: Did not receive identification string from 103.76.173.211
juin 02 13:44:05 ServerSBT sshd[3934]: Received disconnect from 116.31.116.45 port 18521:11:  [preau
juin 02 13:44:05 ServerSBT sshd[3934]: Disconnected from 116.31.116.45 port 18521 [preauth]

Comment résoudre le problème ?
Une idée pour relancer le service apache2
Cordialement


Merci à tous
Cordialement
La connaissance est pour tous alors partageons

Hors ligne

#2 Le 02/06/2017, à 12:55

abelthorne

Re : erreur démarrage apache2

Tu peux essayer de le supprimer et de le réinstaller mais attention, ça va supprimer tes fichiers de config, donc il faudrait les sauvegarder avant :

sudo apt-get remove --purge apache2
sudo apt-get autoremove --purge
sudo apt-get install --reinstall apache2

À noter que le problème a l'air de venir d'un fichier de config, donc il vaudrait mieux le reconfigurer manuellement après réinstallation si tu avais fait des modifs plutôt que de remettre l'ancien, la sauvegarde concerne surtout la config des sites que tu gères (sites-available, mods-available, tout ça...).

Hors ligne