Service apache2 falha

1. Service apache2 falha

WESLEY RUAN DOS SANTOS SIQUEIRA
nikiforos

(usa Ubuntu)

Enviado em 05/04/2022 - 11:30h

quando faço o comando
service apache2 start 
me ocorre o seguinte erro:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


com o comando
sudo journalctl -xe 
aparece:

abr 05 11:22:38 parrot apachectl[4456]: Action 'start' failed.
abr 05 11:22:38 parrot apachectl[4456]: The Apache error log may have more information.
abr 05 11:22:38 parrot systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
abr 05 11:22:38 parrot systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
abr 05 11:22:38 parrot systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A unidade apache2.service falhou
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A unidade apache2.service falhou.
░░
░░ O resultado é failed.
abr 05 11:22:38 parrot polkitd(authority=local)[949]: Unregistered Authentication Agent for unix-process:4441:66182 (system bus name :>
abr 05 11:22:39 parrot wpa_supplicant[957]: wlp1s0: PMKSA-CACHE-ADDED f0:7f:06:c4:9f:f1 0
abr 05 11:22:40 parrot NetworkManager[945]: <info> [1649168560.5953] dns-mgr: Writing DNS information to /sbin/resolvconf
abr 05 11:22:45 parrot sudo[4478]: nikiforos : TTY=pts/0 ; PWD=/home/nikiforos ; USER=root ; COMMAND=/usr/bin/journalctl -xe
abr 05 11:22:45 parrot sudo[4478]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)



Alguem consegue me ajudar?


  


2. Re: Service apache2 falha

Fábio Berbert de Paula
fabio

(usa Debian)

Enviado em 05/04/2022 - 12:03h

O trecho de log postado não informa o erro ocorrido.

Só um detalhe, o comando "service apache2 start" requer permissão de super usuário, tente com:

$ sudo service apache2 start

Dê um confere nos logs do Apache com:

$ sudo tail -f /var/log/apache2/error.log

E qualquer coisa posta a saída do log acima aqui.


3. Re:

Rafael Grether
rafael_grether

(usa FreeBSD)

Enviado em 05/04/2022 - 14:36h


Olá,

Acredito que o Parrot já venha com o nginx instalado e rodando na porta 80 como padrão.
Voce pode conferir com o netstat -na | grep 80

Nesse caso, interrompa o serviço do nginx antes de iniciar o serviço do apache.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts