Autor Tópico: Apache2 + Não inicia - Ubuntu 14.04  (Lida 1962 vezes)

Offline mirmidrone

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Apache2 + Não inicia - Ubuntu 14.04
« Online: 30 de Julho de 2015, 08:25 »
Tinha um serviço do apache2 ativo, após a instalação do Glassfish o serviço não inicia a porta de jeito algum, mesmo com o serviço do glassfish parado.

Ao iniciar o Apache, verifiquei os processos abertos, e aparentemente ele esta ativo, como pode ser visto abaixo:

Código: [Selecionar]
root     16246  0.0  1.6 427632 16664 ?        Ss   Jul27   0:04 /usr/sbin/apache2 -k start
www-data 16250  0.0  0.7 427656  7348 ?        S    Jul27   0:00 /usr/sbin/apache2 -k start
www-data 16251  0.0  0.7 427656  7348 ?        S    Jul27   0:00 /usr/sbin/apache2 -k start
www-data 16252  0.0  0.7 427656  7348 ?        S    Jul27   0:00 /usr/sbin/apache2 -k start
www-data 16253  0.0  0.7 427656  7348 ?        S    Jul27   0:00 /usr/sbin/apache2 -k start
www-data 16254  0.0  0.7 427656  7348 ?        S    Jul27   0:00 /usr/sbin/apache2 -k start
root     17958  0.0  0.4 105632  4328 ?        Ss   08:13   0:00 sshd: gatan [priv]
gatan    18054  0.0  0.2 105632  2140 ?        S    08:14   0:00 sshd: gatan@pts/0
gatan    18055  0.0  0.4  21804  4200 pts/0    Ss   08:14   0:00 -bash
mysql    18382  0.0  5.6 886308 57692 ?        Ssl  08:24   0:20 /usr/sbin/mysqld
gatan    19675  0.0  0.1  17408  1344 pts/0    R+   15:35   0:00 ps -aux


Porem ao utilizar o NMAP para verificar as portas que se encontram abertas, ele me retorna o seguinte resultado:

Código: [Selecionar]
Starting Nmap 6.40 ( http://nmap.org ) at 2015-07-28 15:43 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0010s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 998 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
3306/tcp open  mysql


Desta forma é possivel verificar que o apache não esta abrindo as portas necessárias, ja desinstalei por completo a versão do apache, incluindo MYSQL e PHP. Porem mesmo após a instalação o mesmo não volta a funcionar. Alguém poderia me ajudar a resolver este problema?


Offline agente100gelo

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 4.369
  • @Ceará
    • Ver perfil
Re:Apache2 + Não inicia - Ubuntu 14.04
« Resposta #1 Online: 30 de Julho de 2015, 09:06 »
Vê se os arquivos /var/log/apache2/error.log e /var/log/apache2/access.log dão alguma dica.
Advogado e analista de sistema cearense.
Twitter: @glaydson

Offline mirmidrone

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re:Apache2 + Não inicia - Ubuntu 14.04
« Resposta #2 Online: 30 de Julho de 2015, 11:40 »
Bom dia amigo.

O arquivo error.log aparentemente não retorna nada, segue abaixo:

Código: [Selecionar]
[Mon Jul 27 16:36:40.198099 2015] [mpm_event:notice] [pid 13496:tid 140036648314752] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 16:36:40.198323 2015] [core:notice] [pid 13496:tid 140036648314752] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 27 16:37:10.677976 2015] [mpm_event:notice] [pid 13496:tid 140036648314752] AH00491: caught SIGTERM, shutting down
[Mon Jul 27 16:37:11.853127 2015] [mpm_prefork:notice] [pid 15846] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jul 27 16:37:11.853322 2015] [core:notice] [pid 15846] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 27 16:37:13.393018 2015] [mpm_prefork:notice] [pid 15846] AH00169: caught SIGTERM, shutting down
[Mon Jul 27 16:37:15.229005 2015] [mpm_prefork:notice] [pid 15932] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Jul 27 16:37:15.229128 2015] [core:notice] [pid 15932] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 27 16:38:50.231361 2015] [mpm_prefork:notice] [pid 15932] AH00169: caught SIGTERM, shutting down
[Mon Jul 27 16:38:51.108022 2015] [mpm_prefork:notice] [pid 16158] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Jul 27 16:38:51.108147 2015] [core:notice] [pid 16158] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 27 16:39:10.700916 2015] [mpm_prefork:notice] [pid 16158] AH00169: caught SIGTERM, shutting down
[Mon Jul 27 16:39:56.101525 2015] [mpm_prefork:notice] [pid 16246] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Jul 27 16:39:56.101655 2015] [core:notice] [pid 16246] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jul 28 16:03:40.683003 2015] [mpm_prefork:notice] [pid 16246] AH00169: caught SIGTERM, shutting down


O arquivo access.log encontra-se sem nenhuma linha.

Offline agente100gelo

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 4.369
  • @Ceará
    • Ver perfil
Re:Apache2 + Não inicia - Ubuntu 14.04
« Resposta #3 Online: 01 de Agosto de 2015, 16:29 »
Citar
caught SIGTERM, shutting down

Seu problema deve tá por aí. Tem muita coisa na internet sobre isso mas não consegui identificar facilmente.
Advogado e analista de sistema cearense.
Twitter: @glaydson