Erro na instalação do Apache2

1. Erro na instalação do Apache2

Perfil removido
removido

(usa Nenhuma)

Enviado em 09/02/2018 - 01:00h

Erro:

● apacheds.service - Apache Directory Server
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)

fev 09 00:55:17 Debian systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/java ${JAV…}/
fev 09 00:55:17 Debian systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
fev 09 00:55:17 Debian systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/java ${JAV…}/
fev 09 00:55:17 Debian systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
fev 09 00:57:15 Debian systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/java ${JAV…}/
fev 09 00:57:15 Debian systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
fev 09 00:57:15 Debian systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/java ${JAV…}/
fev 09 00:57:15 Debian systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
fev 09 00:57:15 Debian systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/java ${JAV…}/
fev 09 00:57:15 Debian systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: erro ao processar o pacote apacheds (--configure):
sub-processo script post-installation instalado retornou estado de saída de erro 1
Configurando libaprutil1-ldap:amd64 (1.5.4-3) ...
Configurando apache2-bin (2.4.25-3+deb9u3) ...
Configurando apache2 (2.4.25-3+deb9u3) ...
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 Fri 2018-02-09 00:57:47 -02; 5ms ago
Process: 28970 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 23754 (code=exited, status=0/SUCCESS)

fev 09 00:57:47 Debian systemd[1]: Starting The Apache HTTP Server...
fev 09 00:57:47 Debian apachectl[28970]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apa… directory
fev 09 00:57:47 Debian apachectl[28970]: Action 'start' failed.
fev 09 00:57:47 Debian apachectl[28970]: The Apache error log may have more information.
fev 09 00:57:47 Debian systemd[1]: apache2.service: Control process exited, code=exited status=1
fev 09 00:57:47 Debian systemd[1]: Failed to start The Apache HTTP Server.
fev 09 00:57:47 Debian systemd[1]: apache2.service: Unit entered failed state.
fev 09 00:57:47 Debian systemd[1]: apache2.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
Erros foram encontrados durante o processamento de:
apacheds
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Debian:/home/junior#

O que eu faço para corrigir o problema?


  


2. Re: Erro na instalação do Apache2

Rodrigo
omag0

(usa Debian)

Enviado em 09/02/2018 - 08:42h

Qual distro esta usando? Debian? 9?

segundo o seu log, há um erro na no apache2.conf

" fev 09 00:57:47 Debian apachectl[28970]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf:"

voce editou o arquivo?

se nao souber o que fazer, tente exlcuir e instalar novamente o apache:
apt purge apache2 (ou httpd nao recordo como é no Debian, mas pelo log acho que é apache2 mesmo)
depois
apt install apache2 (ou httpd).
veja se isso resolve e caso nao, volta aqui.


Se usa o debian 9 nao utilize o apt-get, somente o apt e o que quer fazer (apt install, apt purge .... apt help para sanar as dúvidas.).






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts