A tarefa para apache2.service falhou porque o processo de controle foi encerrado com o código de erro. iniciar o apache ao lado do nó vermelho

0

Eu tenho um problema com o apache em (debian 9 64 bits). eu quero instalar o drupal como este artigo, mas quando eu quero start apche me mostrou este erro:

mjb@debian:~$ systemctl start apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

e eu fui instalado NODE-RED, antes do apache.

o NODE-RED usa este endereço: localhost: 1880

o apache usa a porta 80.

resultado deste comando systemctl status apache2.service :

mjb@debian:~$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2018-05-05 15:28:54 +0430; 37min ago
  Process: 1398 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

resultado deste comando journalctl -xe :

root@debian:/home/mjb# journalctl -xe
May 05 16:09:01 debian CRON[2339]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; 
May 05 16:09:01 debian CRON[2338]: pam_unix(cron:session): session closed for user root
May 05 16:09:15 debian systemd[1]: Starting Clean php session files...
-- Subject: Unit phpsessionclean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit phpsessionclean.service has begun starting up.
May 05 16:09:16 debian systemd[1]: Started Clean php session files.
-- Subject: Unit phpsessionclean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit phpsessionclean.service has finished starting up.
-- 
-- The start-up result is done.
May 05 16:09:55 debian systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit apache2.service has begun starting up.
May 05 16:09:55 debian apachectl[2399]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 11 of /etc/apache2/sites-
May 05 16:09:55 debian apachectl[2399]: Action 'start' failed.
May 05 16:09:55 debian apachectl[2399]: The Apache error log may have more information.
May 05 16:09:55 debian systemd[1]: apache2.service: Control process exited, code=exited status=1
May 05 16:09:55 debian systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is failed.
May 05 16:09:55 debian systemd[1]: apache2.service: Unit entered failed state.
May 05 16:09:55 debian systemd[1]: apache2.service: Failed with result 'exit-code'.

EDITAR:

no arquivo /etc/apache2/sites-enabled/drupal.conf eu vejo isto:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/drupal
ServerName 192.168.15.189
ServerAlias www.example.com
<<Directory "/var/www/html/drupal/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/drupal-error_log
CustomLog /var/log/apache2/drupal-access_log common
</VirtualHost>

note : eu uso do node-red (localhost: 1880 /)

    
por mohammad javad Barati 05.05.2018 / 13:44

1 resposta

0

Há um erro no artigo que você está seguindo, na linha:

<<Directory "/var/www/html/drupal/">

Basta remover um dos colchetes iniciais < .

    
por 05.05.2018 / 15:50