Pular para o conteúdo

Reinstalar o Apache [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar

1. Reinstalar o Apache [RESOLVIDO]

Enviado em 09/11/2012 - 21:47h

Preciso desesperadamente reinstalar o Apache2 mas não consigo nem removê-lo completamente.
Já encontrei algumas dicas aqui no VOL como:
(aptitude purge apache2), (apt-get --purge remove), (apt-get autoremove --purge), (rm -rfv /etc/apache2)[para remover outros arquivos].
Nenhum desses comandos deu certo. Gostaria de contar com a ajuda dos amigos.

Desde já, agradeço!!!

Responder tópico

2. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 09/11/2012 - 21:55h

# dpkg -P apache2

3. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 09/11/2012 - 22:26h

para que remover e depois reinstalar

não é mais fácil apenas

sudo dpkg-reconfigure apache2

4. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 09/11/2012 - 23:15h

Eu esqueci de falar que já havia tentado estas duas opções... todas sem sucesso

5. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 09/11/2012 - 23:18h

recateli escreveu:

Eu esqueci de falar que já havia tentado estas duas opções... todas sem sucesso
Posta o resultado ai brother.

# dpkg -l | grep apache2

6. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 10/11/2012 - 14:49h

dpkg -l | grep apache2
ii apache2-utils 2.2.16-1ubuntu3.1 utility programs for webservers
ii apache2.2-bin 2.2.16-1ubuntu3.1 Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-1ubuntu3.1 Apache HTTP Server common files
rc libapache2-mod-perl2 2.0.4-7ubuntu1 Integration of perl with the Apache2 web server

7. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 10/11/2012 - 22:10h

Tente assim:

dpkg --get-selections | grep apache

Irá aparecer todos os pacotes relacionados ao apache. Remova todos:

aptitude purge apache2 apache2-mpm-worker ...

Depois de removidos reinstale o apache2:

aptitude install apache2.


8. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 11/11/2012 - 00:19h

recateli escreveu:

dpkg -l | grep apache2
ii apache2-utils 2.2.16-1ubuntu3.1 utility programs for webservers
ii apache2.2-bin 2.2.16-1ubuntu3.1 Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-1ubuntu3.1 Apache HTTP Server common files
rc libapache2-mod-perl2 2.0.4-7ubuntu1 Integration of perl with the Apache2 web server
O apache já foi desinstalado velhinho!

9. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 11/11/2012 - 16:48h

O problema é que quando tento reinstalar, o sistema age como se o apache ainda (ou já) estivesse instalado.

10. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 11/11/2012 - 20:04h

Cara eu recentemente tive esse problema e resolvi removendo todos os pacotes relacionados ao apache:

dpkg -l | grep apache2
ii apache2-utils 2.2.16-1ubuntu3.1 utility programs for webservers
ii apache2.2-bin 2.2.16-1ubuntu3.1 Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-1ubuntu3.1 Apache HTTP Server common files
rc libapache2-mod-perl2 2.0.4-7ubuntu1 Integration of perl with the Apache2 web server

Remova todos:

aptitude purge apache2-utils apache2.2-bin apache2.2-common libapache2-mod-perl2

Depois de removidos, tenta reinstalar.

11. Re: Reinstalar o Apache [RESOLVIDO]

Enviado em 11/11/2012 - 23:05h

Valeww paolini!!! Até que enfim o problema foi resolvido. Agradeço o apoio de todos

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder