J’ai installé apache2 mais ça ne va pas commencer quand je le fais
sudo service apache2 start
ça me donne ce problème
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
alors quand j’entre dans cette commande
systemctl status apache2.service
ça me donne ce message
● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: exit-code) since ن 2016-04-11 15:41:07 WEST; min 43s ago Docs: man:systemd-sysv-generator(8) Process: 19644 ExecStart=/etc/init.d/apache2 start (code=exited, status=2) 11 15:41:07 oussama-UL50VT systemd[1]: Starting LSB: Apache2 web server... 11 15:41:07 oussama-UL50VT apache2[19644]: /etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars 11 15:41:07 oussama-UL50VT apache2[19644]: /etc/init.d/apache2: 76: .: Can't open /etc/apache2/envvars 11 15:41:07 oussama-UL50VT systemd[1]: apache2.service: Control process exited, code=exited status=2 11 15:41:07 oussama-UL50VT systemd[1]: Failed to start LSB: Apache2 web server. 11 15:41:07 oussama-UL50VT systemd[1]: apache2.service: Unit entered failed state. 11 15:41:07 oussama-UL50VT systemd[1]: apache2.service: Failed with result 'exit-code'. 11 15:41:07 oussama-UL50VT apache2[19644]: ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
Il semble que votre installation Apache soit cassée … Essayez de réinstaller apache en lançant les commandes suivantes dans le terminal:
sudo apt-get purge apache2 sudo apt-get install apache2
Exécutez cette commande.
la sortie devrait montrer exactement ce qui manque dans le dossier de chargement des mods. Installez la commande manquante indiquée pour le mod, puis installez à nouveau les mods manquants jusqu’à ce que apache démarre.
Cela a fonctionné pour moi sur linux menthe 18