apache erro raspbian-- raspberry pi 3

1. apache erro raspbian-- raspberry pi 3

Guilherme Sanita
et1215

(usa Ubuntu)

Enviado em 15/05/2018 - 20:00h

root@raspberrypi:/home/pi# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 236 kB of archives.
After this operation, 592 kB of additional disk space will be used.
Get:1 http://mirror.nbtelecom.com.br/raspberryPI/raspbian stretch/main armhf apache2 armhf 2.4.25-3+deb9u4 [236 kB]
Fetched 236 kB in 2s (97.3 kB/s)
Selecting previously unselected package apache2.
(Reading database ... 36509 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.25-3+deb9u4_armhf.deb ...
Unpacking apache2 (2.4.25-3+deb9u4) ...
Setting up apache2 (2.4.25-3+deb9u4) ...
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2018-05-15 22:50:12 UTC; 34ms ago
Process: 2075 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

May 15 22:50:11 raspberrypi systemd[1]: Starting The Apache HTTP Server...
May 15 22:50:12 raspberrypi apachectl[2075]: apache2: Syntax error on line 2…ory
May 15 22:50:12 raspberrypi apachectl[2075]: Action 'start' failed.
May 15 22:50:12 raspberrypi apachectl[2075]: The Apache error log may have m…on.
May 15 22:50:12 raspberrypi systemd[1]: apache2.service: Control process exi…s=1
May 15 22:50:12 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
May 15 22:50:12 raspberrypi systemd[1]: apache2.service: Unit entered failed…te.
May 15 22:50:12 raspberrypi systemd[1]: apache2.service: Failed with result …e'.
Hint: Some lines were ellipsized, use -l to show in full.
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
root@raspberrypi:/home/pi#
por favor alguém pode me dar uma ajuda fui reiniciar o serviço e deu ruin
dai removi o serviço e fui estalar novamente deu ruin novamente



  


2. Re: apache erro raspbian-- raspberry pi 3

Jeffersson Abreu
ctw6av

(usa Nenhuma)

Enviado em 16/05/2018 - 09:54h

Veja que a mensagem de erro te aponta e mostra algumas informações:
The Apache error log may have m... 

Olhe no log de erro do apache que fica em "/var/log/apache2/error.log" que vai conter mais informações.

Outro ponto importante na mensagem de erro é o que diz que há um erro de sintaxe no arquivo de configuração do apache. Acho que um simples purge deve resolver sua situação.
apt remove --purge apache2  


Se não resolver use o comando:
tail /var/log/apache2/error.log 

E poste a saída aqui para prosseguirmos.

É noiss!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts