Apache2 测试失败

Apache2 测试失败

我正在配置RT4在 Ubuntu 15.04 上,但我收到错误。以下是错误的输出:

technical@rt:~$ systemctl status apache2.service -l
â apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since Wed 2016-01-13 14:31:48 CAT; 1min 22s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 14059 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 14569 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Jan 13 14:31:48 rt apache2[14569]: *
Jan 13 14:31:48 rt apache2[14569]: * The apache2 configtest failed.
Jan 13 14:31:48 rt apache2[14569]: Output of config test was:
Jan 13 14:31:48 rt apache2[14569]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 29 of /etc/apache2/sites-enabled/000-default.conf: Could not open configuration file /etc/request-tracker4/apache2-modperl2.conf: No such file or directory
Jan 13 14:31:48 rt apache2[14569]: Action 'configtest' failed.
Jan 13 14:31:48 rt apache2[14569]: The Apache error log may have more information.
Jan 13 14:31:48 rt systemd[1]: apache2.service: control process exited, code=exited status=1
Jan 13 14:31:48 rt systemd[1]: Failed to start LSB: Apache2 web server.
Jan 13 14:31:48 rt systemd[1]: Unit apache2.service entered failed state.
Jan 13 14:31:48 rt systemd[1]: apache2.service failed.

请协助

答案1

当前的问题是文件/etc/apache2/apache2.conf第 219 行出现语法错误。

看起来您引用了部分配置/etc/request-tracker4/apache2-modperl2.conf,但实际上它并不存在。(No such file or directory

要解决此问题,请找出该文件的实际位置并调整文件路径。

相关内容