Probleme de réinstallation apache2

Fermé
ibrazen - Modifié le 9 nov. 2020 à 00:10
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 9 nov. 2020 à 00:12
Bonjour,

J'ai dû effacer un mauvais répertoire lors de la désinstallation de
apache2
, et depuis lorsque que je le réinstalle j'ai l'erreur suivante :

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-11-06 18:19:32 CET; 8ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 23062 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

nov. 06 18:19:32 X540UP-Oz systemd[1]: Starting The Apache HTTP Server...
nov. 06 18:19:32 X540UP-Oz apachectl[23085]: apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
nov. 06 18:19:32 X540UP-Oz apachectl[23062]: Action 'start' failed.
nov. 06 18:19:32 X540UP-Oz apachectl[23062]: The Apache error log may have more information.
nov. 06 18:19:32 X540UP-Oz systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
nov. 06 18:19:32 X540UP-Oz systemd[1]: apache2.service: Failed with result 'exit-code'.
nov. 06 18:19:32 X540UP-Oz systemd[1]: Failed to start The Apache HTTP Server.


... et le serveur ne se met pas en place. Est ce que je dois réécrire le fichier
/etc/apache2/apache2.conf
?

Configuration: Linux / Firefox 82.0
A voir également:

1 réponse

mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 7 749
9 nov. 2020 à 00:12
Bonjour,

Quelle distribution utilises-tu ? Si c'est un debian ou une distribution qui se base dessus (ubuntu, cinnamon), tente de purger les paquets liés à apache2, puis de les désinstaller...

sudo apt update
sudo apt-get purge apache2*
sudo apt install apache2


Bonne chance
0