Project

General

Profile

apache2 não inicia depois de a2dissite 000-.... a2ensite redmine.conf

Added by Eliel Santos 10 months ago

alguem poderia me ajudar
se a2dissite 000-default.conf a2ensite redmine.conf
da erro para iniciar o apache2 se

a2dissite redmine.conf a2ensite redmine.conf
este é meu arquivo redmine.conf 000-default.conf
o apache inicia normalmente
<VirtualHost *:80>
    ServerName redmine.example.com
    RailsEnv production
    DocumentRoot /opt/redmine/public

    <Directory "/opt/redmine/public">
            Allow from all
            Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/redmine_error.log
        CustomLog ${APACHE_LOG_DIR}/redmine_access.log combined
</VirtualHost>

este é o erro:

Job for apache2.service failed.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

saida de sudo journalctl -xeu apache2.service:

 A unidade apache2.service concluiu a inicialização.
░░
░░ The start-up result is done.
jul 17 16:26:35 redmine systemd[1]: Reloading The Apache HTTP Server...
░░ Subject: Unidade apache2.service iniciou recarregamento de sua configuração
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A unidade apache2.service iniciou o recarregamento de sua configuração.
jul 17 16:26:35 redmine apachectl[61595]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/redmine.conf:
jul 17 16:26:35 redmine apachectl[61595]: Invalid command 'ola', perhaps misspelled or defined by a module not included>
jul 17 16:26:35 redmine apachectl[61592]: Action 'graceful' failed.
jul 17 16:26:35 redmine apachectl[61592]: The Apache error log may have more information.
jul 17 16:26:35 redmine systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecReload= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
jul 17 16:26:35 redmine systemd[1]: Reload failed for The Apache HTTP Server.
░░ Subject: Unidade apache2.service concluiu recarregamento de sua configuração
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A unidade apache2.service concluiu o recarregamento de sua configuração.
░░
░░ O resultado é failed.