Réinstallation Apache2

Bonjour,

J’ai installé Apache2 sur mon serveur.

Suite à un problème de configuration que je n’arrivais pas à résoudre, j’ai décidé de désinstaller Apache2 et de le réinstaller.

Voyant le problème persisté, j’ai désinstallé Apache2, supprimé les fichiers de conf puis je l’ai réinstallé.

Maintenant les fichiers de conf sont manquants. j’ai recommancé la procédure en ajoutant des “purge” et des “autoclean” “…” mais rien ne change.

Comment puis-je faire pour réinstaller Apache2 avec ses fichiers de conf.

Merci de votre aide,
Le Tardigrade

Salut,

Pas très clair sans le retour console … :033

Que te donnes …

:~$ apt-cache policy apache2
:~$ aptitude search ~c
:~$ aptitude -s install apache2
:~$ aptitude -s reinstall apache2
:~$ apt-get -s install apache2

Retour console, obligatoire :033 avec le BBCodes, pour bien faire … :083

root:~# apt-cache policy apache2
apache2:
Installé : (aucun)
Candidat : 2.2.16-6+squeeze6
Table de version :
2.2.16-6+squeeze6 0
500 security.debian.org/ squeeze/updates/main amd64 Packages
2.2.16-6+squeeze4 0
500 mirror.ovh.net/debian/ squeeze/main amd64 Packages

root:~# aptitude search ~c
c apache2.2-common - Apache HTTP Server common files
c autoconf - automatic configure script builder
c binutils - The GNU assembler, linker and binary utilities
c fontconfig-config - generic font configuration library - configuration
c libapache2-mod-auth-pam - module for Apache2 which authenticate using PAM
c libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
c libc-client2007e - c-client library for mail protocols - library files
c libfontconfig1 - generic font configuration library - runtime
c libgd2-xpm - GD Graphics Library version 2
c libgmp3c2 - Multiprecision arithmetic library
c libgomp1 - GCC OpenMP (GOMP) support library
c libltdl7 - A system independent dlopen wrapper for GNU libtool
c libmcrypt4 - De-/Encryption Library
c libmpfr4 - multiple precision floating-point computation
c libonig2 - Oniguruma regular expressions library
c libqdbm14 - QDBM Database Libraries [runtime]
c libt1-5 - Type 1 font rasterizer library - runtime
c libtidy-0.99-0 - HTML syntax checker and reformatter - library
c libx11-6 - X11 client-side library
c libxpm4 - X11 pixmap library
c odbcinst - Helper program for accessing odbc ini files
c odbcinst1debian2 - Support library for accessing odbc ini files
c php-pear - PEAR - PHP Extension and Application Repository
c php5-cli - command-line interpreter for the php5 scripting language
c php5-common - Common files for packages built from the php5 source
c php5-gd - GD module for php5
c php5-gmp - GMP module for php5
c php5-imap - IMAP module for php5
c php5-ldap - LDAP module for php5
c php5-mcrypt - MCrypt module for php5
c php5-mysql - MySQL module for php5
c php5-odbc - ODBC module for php5
c php5-pgsql - PostgreSQL module for php5
c php5-suhosin - advanced protection module for php5
c php5-tidy - tidy module for php5
c unixodbc - ODBC tools libraries

root:~# aptitude -s install apache2
Les NOUVEAUX paquets suivants vont être installés :
apache2 apache2-mpm-worker{a} apache2-utils{a} apache2.2-bin{a} apache2.2-common{a}
0 paquets mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0 o/1 916 ko d’archives. Après dépaquetage, 6 644 ko seront utilisés.
Voulez-vous continuer ? [Y/n/?] y
Réponse incorrecte. Veuillez entrer une commande correcte ou « ? » pour obtenir de l’aide.
Voulez-vous continuer ? [Y/n/?] Y
Charger/installer/enlever des paquets.

root:~# aptitude -s reinstall apache2
apache2 n’est pas actuellement installé, il ne sera donc pas réinstallé.
apache2 n’est pas actuellement installé, il ne sera donc pas réinstallé.
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0 o d’archives. Après dépaquetage, 0 o seront utilisés.
Charger/installer/enlever des paquets.

root:~# apt-get -s install apache2
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Les paquets supplémentaires suivants seront installés :
apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
Paquets suggérés :
apache2-doc apache2-suexec apache2-suexec-custom
Les NOUVEAUX paquets suivants seront installés :
apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Inst apache2.2-bin (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Inst apache2-utils (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Inst apache2.2-common (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Inst apache2-mpm-worker (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Inst apache2 (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Conf apache2.2-bin (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Conf apache2-utils (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Conf apache2.2-common (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Conf apache2-mpm-worker (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])
Conf apache2 (2.2.16-6+squeeze6 Debian-Security:6.0/stable [amd64])

Alors lances toi … :wink:

Je comprends pas j’ai plus de problème
Merci de m’avoir aidé.
Bonne soirée,
Le Tardigrade

Merveilleux. :023

Comment avais tu tenté la réinstallation ?

apt-get ?
synaptic ?
autre ?

uniquement avec apt-get

tu auras compris que je ne suis pas un spécialiste.

Je n’oublierai plus la commande aptitude

Le Tardigrade