ERRO AO SUBIR APACHE

1. ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 11:39h

job for apache2 service failed see systemctl status apache2 service and journalctl



comando journalctl -xe retorna o seguinte :

unit apache2.service has begun starting up
jun 07 11:22:10 glpiocs apache2[2165]:starting wev server: apache2 failed
jun 07 11:22:10 glpiocs apache2[2165]:the apache2 configtest failed . ...(warning).
jun 07 11:22:10 glpiocs apache2[2165]:output of config test was:
jun 07 11:22:10 glpiocs apache2[2165]:apache2: systax error on line 216 of /etc/apache2/apache2.conf: Systax error on line of
jun 07 11:22:10 glpiocs apache2[2165]:action configtest failed
jun 07 11:22:10 glpiocs apache2[2165]:the apache error log may have more information
jun 07 11:22:10 glpiocs systemd[1]:apache2.service: control process exited, code:exited status:1
jun 07 11:22:10 glpiocs systemd[1]:Failed to start LSB:Apache2 web server



  


2. Re: ERRO AO SUBIR APACHE

Perfil removido
removido

(usa Nenhuma)

Enviado em 07/06/2019 - 11:53h

systax error on line 216 of /etc/apache2/apache2.conf: Systax error on line of



3. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 11:57h

o erro esta na linha 216 do arquivo ? é isso? sou leigo no linux


4. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 11:57h

amarildosertorio escreveu:

systax error on line 216 of /etc/apache2/apache2.conf: Systax error on line of


o erro ta na linha 216 do arquivo, isso ?


5. Re: ERRO AO SUBIR APACHE

Perfil removido
removido

(usa Nenhuma)

Enviado em 07/06/2019 - 11:58h


silvalcs escreveu:

amarildosertorio escreveu:

systax error on line 216 of /etc/apache2/apache2.conf: Systax error on line of


o erro ta na linha 216 do arquivo, isso ?


Isso


6. Re: ERRO AO SUBIR APACHE

Perfil removido
removido

(usa Nenhuma)

Enviado em 07/06/2019 - 12:02h

Posta a linha:

# sed -n 216p /etc/apache2/apache2.conf



7. Re: ERRO AO SUBIR APACHE

Perfil removido
removido

(usa Nenhuma)

Enviado em 07/06/2019 - 13:06h

Sempre verifique a sintaxe após alteração de um arquivo de configuração e antes de um restart do Apache.

# apache2ctl -t

-t
Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed.



8. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 13:34h

amarildosertorio escreveu:

Posta a linha:

# sed -n 216p /etc/apache2/apache2.conf


includedOptional conf-enable/ *.conf


9. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 13:37h

amarildosertorio escreveu:

Sempre verifique a sintaxe após alteração de um arquivo de configuração e antes de um restart do Apache.

# apache2ctl -t

-t
Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed.


apache2:syntax error on line 216 of etc/apache2/apache2.conf: syntax error on line 1 of /etc/apache2/conf-enable/helpcenter.jussi.conf: /etc/apache2/conf-enable/helpcenter.jussu.conf:1: <directory> was not closed
action -t failed
the apache error log may have more information


10. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 13:41h

silvalcs escreveu:

amarildosertorio escreveu:

Sempre verifique a sintaxe após alteração de um arquivo de configuração e antes de um restart do Apache.

# apache2ctl -t

-t
Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed.


apache2:syntax error on line 216 of etc/apache2/apache2.conf: syntax error on line 1 of /etc/apache2/conf-enable/helpcenter.jussi.conf: /etc/apache2/conf-enable/helpcenter.jussu.conf:1: <directory> was not closed
action -t failed
the apache error log may have more information




https://www.alfabe.ch/2018/01/atribuindo-uma-url-amigavel-no-glpi_29.html eu estava seguindo esse tutorial para criar uma url amigavel




11. Re: ERRO AO SUBIR APACHE

Perfil removido
removido

(usa Nenhuma)

Enviado em 07/06/2019 - 14:17h

silvalcs escreveu:

amarildosertorio escreveu:

Posta a linha:

# sed -n 216p /etc/apache2/apache2.conf


includedOptional conf-enable/ *.conf


Não seria esse espaço (/ *.conf)?

Altere e verifique a sintaxe novamente.

De: includedOptional conf-enable/ *.conf
Para: includedOptional conf-enable/*.conf







12. Re: ERRO AO SUBIR APACHE

Lucas
silvalcs

(usa Debian)

Enviado em 07/06/2019 - 14:22h

amarildosertorio escreveu:


silvalcs escreveu:

amarildosertorio escreveu:

Posta a linha:

# sed -n 216p /etc/apache2/apache2.conf


includedOptional conf-enable/ *.conf


Não seria esse espaço (/ *.conf)?

Altere e execute e verifique a sintaxe novamente.

De: includedOptional conf-enable/ *.conf
Para: includedOptional conf-enable/*.conf








Consegui resolver era uma linha dentro do arquivo .conf que criei, obrigado cara, ajudou demais



01 02