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 09/07/2019, à 09:52

bagou450

crash apache

Bonjourj
j'ai un crash de apache 2 que voici

bagou450@zelkoa:~$ sudo service apache2 start
[sudo] Mot de passe de bagou450 :
Job for apache2.service failed because the control process exited with error cod                                                                                                                                                                                                                                             e.
See "systemctl status apache2.service" and "journalctl -xe" for details.
bagou450@zelkoa:~$ journalctl -xe
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) session-31.scope a terminé son démarrage, avec le résultat RES
juil. 09 09:50:03 zelkoa sudo[5744]: bagou450 : TTY=pts/1 ; PWD=/home/bagou450 ;
juil. 09 09:50:03 zelkoa sudo[5744]: pam_unix(sudo:session): session opened for
juil. 09 09:50:04 zelkoa systemd[1]: Starting The Apache HTTP Server...
-- Subject: L'unité (unit) apache2.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) apache2.service a commencé à démarrer.
juil. 09 09:50:04 zelkoa apachectl[5772]: apache2: Syntax error on line 228 of /
juil. 09 09:50:04 zelkoa apachectl[5772]: Action 'start' failed.
juil. 09 09:50:04 zelkoa apachectl[5772]: The Apache error log may have more inf
juil. 09 09:50:04 zelkoa systemd[1]: apache2.service: Control process exited, co
juil. 09 09:50:04 zelkoa systemd[1]: apache2.service: Failed with result 'exit-c
juil. 09 09:50:04 zelkoa systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: L'unité (unit) apache2.service a échoué
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) apache2.service a échoué, avec le résultat RESULT.
juil. 09 09:50:04 zelkoa sudo[5744]: pam_unix(sudo:session): session closed for
lines 1133-1155/1155 (END)
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) session-31.scope a terminé son démarrage, avec le résultat RESULT.
juil. 09 09:50:03 zelkoa sudo[5744]: bagou450 : TTY=pts/1 ; PWD=/home/bagou450 ; USER=root ; COMMAND=/usr/sbin/service apache2 start
juil. 09 09:50:03 zelkoa sudo[5744]: pam_unix(sudo:session): session opened for user root by bagou450(uid=0)
juil. 09 09:50:04 zelkoa systemd[1]: Starting The Apache HTTP Server...
-- Subject: L'unité (unit) apache2.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) apache2.service a commencé à démarrer.
juil. 09 09:50:04 zelkoa apachectl[5772]: apache2: Syntax error on line 228 of /etc/apache2/apache2.conf: /etc/apache2/apache2.conf:228: <FilesMatch> was not closed.
juil. 09 09:50:04 zelkoa apachectl[5772]: Action 'start' failed.
juil. 09 09:50:04 zelkoa apachectl[5772]: The Apache error log may have more information.
juil. 09 09:50:04 zelkoa systemd[1]: apache2.service: Control process exited, code=exited status=1
juil. 09 09:50:04 zelkoa systemd[1]: apache2.service: Failed with result 'exit-code'.
juil. 09 09:50:04 zelkoa systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: L'unité (unit) apache2.service a échoué
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) apache2.service a échoué, avec le résultat RESULT.
juil. 09 09:50:04 zelkoa sudo[5744]: pam_unix(sudo:session): session closed for user root

commment resoudre ceci et j'ai aussi un probleme apache ne lit pas les php
cordialement


Yotapaki

Hors ligne

#2 Le 09/07/2019, à 10:14

bruno

Re : crash apache

Bonjour,

Ce n'est pas un crash mais une erreur de configuration qui empêcha apache2 de se lancer :

apache2: Syntax error on line 228 of /etc/apache2/apache2.conf: /etc/apache2/apache2.conf:228: <FilesMatch> was not closed.

Attention le numéro de ligne n'est pas le bon. Si tu veux voir dans quel fichier est ton erreur :

sudo apache2ctl -t

Tu corriges et tu relances Apache
Pour l'autre problème voir le point 4.2 de la doc php

Hors ligne

#3 Le 10/07/2019, à 10:09

bagou450

Re : crash apache

ligne 228



228 <FilesMatch \.php$>

229 SetHandler application/x-httpd-php

230 </FilesMatch \php$>


Yotapaki

Hors ligne

#4 Le 10/07/2019, à 10:12

bagou450

Re : crash apache

mais en faite j'ai un problème grave quand je fait sudo php -v j'obtient php version 5.1 mais en fessant php -v j'obtient php 7.2 ! et je pense que appache est installer en double car la page web marche alors que apache a crash ...


Yotapaki

Hors ligne