Erros executar o restart no Apache2 [RESOLVIDO]

1. Erros executar o restart no Apache2 [RESOLVIDO]

Vitor Hugo
vicktorzx

(usa Ubuntu)

Enviado em 20/05/2014 - 19:01h

Boa Noite,
preciso de uma ajuda com meu Apache2, tentei montar um Servidor Xamp para estudos no meu Desktop Ubuntu 14.04, mas quando tento subir o serviço executando os seguintes comandos:

root@vicktorzx:~# service apache2 restart

root@vicktorzx:~# service apache2 stop
root@vicktorzx:~# service apache2 start

e constou este erro abaixo:

* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

tentei esta solução por este site e outros mas não tive sucesso.

http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qua...

Acredito que tenha feito alguma coisa não sei pois estava tentando instalar o Xamp e o Phpmyadmin e este tambem estão com errors mais o apache e meu foco principal por favor me ajudem.


  


2. Re: Erros executar o restart no Apache2 [RESOLVIDO]

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 20/05/2014 - 21:42h

vicktorzx escreveu:

Boa Noite,
preciso de uma ajuda com meu Apache2, tentei montar um Servidor Xamp para estudos no meu Desktop Ubuntu 14.04, mas quando tento subir o serviço executando os seguintes comandos:

root@vicktorzx:~# service apache2 restart

root@vicktorzx:~# service apache2 stop
root@vicktorzx:~# service apache2 start

e constou este erro abaixo:

* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

tentei esta solução por este site e outros mas não tive sucesso.

http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qua...

Acredito que tenha feito alguma coisa não sei pois estava tentando instalar o Xamp e o Phpmyadmin e este tambem estão com errors mais o apache e meu foco principal por favor me ajudem.


Amigo a sua interface de "loopback" esta ativa?
No /etc/hosts
Adicione:(caso não tiver)

127.0.0.1 localhost
SEU_IP HOSTANEM.localhost(ou dominio) HOSTNAME


3. Re: Erros executar o restart no Apache2 [RESOLVIDO]

Vitor Hugo
vicktorzx

(usa Ubuntu)

Enviado em 20/05/2014 - 23:42h

Boa Noite,
e obrigado amigo pela dica dei uma olhada agora e creio ela estava off mesmo, havia desligado minha maquina para dar um descanço a ela e quando liguei fui testar via navegado o localhost e esta funcionando novamente.

dei uma verificada no passo a passo e esta OK valeu

vim /etc/hosts

Resultado:

127.0.0.1 localhost
127.0.1.1 vicktorzx

vim /etc/network/interface

Resultado:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


Tudo certinho valeu amigo :D






4. Re: Erros executar o restart no Apache2 [RESOLVIDO]

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 20/05/2014 - 23:44h

Beleza amigo, marque como melhor resposta então :-D






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts