[apache] Impossible à démarrer (résolu)

Applications, problèmes de configuration réseau
Mystiky
newbie
Messages : 2
Inscription : dim. 13 avr. 2014, 12:46

[apache] Impossible à démarrer (résolu)

Message par Mystiky »

Bonjour,

Je me suis lancé depuis 3 jours dans la grande aventure Arch-Linux.
Et je ne regrette pas mon choix ! Je trouve cette distribution très bien foutu.

Sauf que depuis hier je bloque sur l'installation de Lamp et plus précisément sur le démarrage d'apache.

J'ai suivi la Doc à la lettre, qui est d'ailleurs très complète, mais rien y fait quand je veux démarrer apache avec la commande "systemctl start httpd", j'obtient :

Code : Tout sélectionner

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
voici ce que me renvoie la commande "journalctl -xn" :

Code : Tout sélectionner

-- Logs begin at sam. 2014-04-12 22:36:31 CEST, end at dim. 2014-04-13 15:20:13 CEST. --
avril 13 15:19:35 Arch-linux-Tibo systemd[1]: Unit httpd.service entered failed state.
avril 13 15:19:37 Arch-linux-Tibo systemd[1]: Starting Apache Web Server...
-- Subject: L'unité (unit) httpd.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) httpd.service a commencé à démarrer.
avril 13 15:19:37 Arch-linux-Tibo apachectl[1075]: [Sun Apr 13 15:19:37.660767 2014] [:crit] [pid 1077:tid 139680
avril 13 15:19:37 Arch-linux-Tibo apachectl[1075]: AH00013: Pre-configuration failed
avril 13 15:19:37 Arch-linux-Tibo systemd[1]: httpd.service: control process exited, code=exited status=1
avril 13 15:19:37 Arch-linux-Tibo systemd[1]: Failed to start Apache Web Server.
-- Subject: L'unité (unit) httpd.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) httpd.service a échoué, avec le résultat failed.
avril 13 15:19:37 Arch-linux-Tibo systemd[1]: Unit httpd.service entered failed state.
avril 13 15:19:41 Arch-linux-Tibo org.freedesktop.GeoClue2[333]: (geoclue:690): Geoclue-WARNING **: Error fetchin
avril 13 15:20:13 Arch-linux-Tibo dbus[333]: [system] Activating via systemd: service name='org.freedesktop.Modem
avril 13 15:20:13 Arch-linux-Tibo dbus[333]: [system] Activation via systemd failed for unit 'dbus-org.freedeskto
lines 1-21/21 (END)

"systemctl status httpd.service" me donne :

Code : Tout sélectionner

● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since dim. 2014-04-13 15:21:51 CEST; 7s ago
  Process: 2095 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 5434 (code=exited, status=0/SUCCESS)

avril 13 15:21:51 Arch-linux-Tibo apachectl[2095]: [Sun Apr 13 15:21:51.947269 2014] [:crit] [pid 2097:tid...PHP.
avril 13 15:21:51 Arch-linux-Tibo apachectl[2095]: AH00013: Pre-configuration failed
avril 13 15:21:51 Arch-linux-Tibo systemd[1]: httpd.service: control process exited, code=exited status=1
avril 13 15:21:51 Arch-linux-Tibo systemd[1]: Failed to start Apache Web Server.
avril 13 15:21:51 Arch-linux-Tibo systemd[1]: Unit httpd.servi
J'ai déjà cherché sur les forums et google, et je cherche toujours, mais j'espère que quelqu'un pourras me venir en aide sur ce topic.

Merci d'avance de prêter attention à mon problème.

Ps : j'ai déjà essayé de désinstaller les paquets php, php-apache et mariadb et ensuite de le remettre, mais en vaint. J'obtient la même erreur.
Dernière modification par Mystiky le dim. 13 avr. 2014, 14:22, modifié 2 fois.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: Impossible de démarrer apache

Message par FoolEcho »

Salut,

Merci de rectifier le titre, http://wiki.archlinux.fr/Forum#Format_du_titre. :chinois:
Mystiky a écrit :

Code : Tout sélectionner

avril 13 15:21:51 Arch-linux-Tibo apachectl[2095]: AH00013: Pre-configuration failed
Un problème dans la configuration.
Tu peux nous montrer ton /etc/httpd/conf/httpd.conf ?
«The following statement is not true. The previous statement is true.» :nage:
Mystiky
newbie
Messages : 2
Inscription : dim. 13 avr. 2014, 12:46

Re: [gnome][apache][nvidia] Impossible de démarrer apache

Message par Mystiky »

Je viens de rectifier le tire.

Bon et au final j'ai réussi, voilà la démarche que j'ai suvie :

Code : Tout sélectionner

sudo httpd
et j'ai obtenue l'erreur : "Apache is running a threaded MPM"
J'ai donc suivit la doc en remplacant : "LoadModule mpm_event_module modules/mod_mpm_event.so" par "LoadModule mpm_prefork_module modules/mod_mpm_prefork.so" dans le fichié /etc/httpd/conf/httpd.conf.

Et au final la commande "systemctl start httpd" marche sans aucun soucis.

Désolé pour ce topic un peut inutle j'espère que ça serviras à d'autres personnes x).
Répondre