无法启动apache2的服务

时间:2017-08-08 05:52:08

标签: php mysql apache

当我发出命令重启apache服务时,这些是流式传输

 apache2.service - LSB: Apache2 web server
 Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
 Drop-In: /lib/systemd/system/apache2.service.d
       └─apache2-systemd.conf
 Active: failed (Result: exit-code) since Tue 2017-08-08 11:14:56 IST; 42s ago
 Docs: man:systemd-sysv-generator(8)
 Process: 3568 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)

Aug 08 11:14:56 Lab2-73 systemd[1]: Starting LSB: Apache2 web server...
Aug 08 11:14:56 Lab2-73 apache2[3568]: /etc/init.d/apache2: 46: .: Can't open /e
Aug 08 11:14:56 Lab2-73 apache2[3568]: /etc/init.d/apache2: 57: .: Can't open /e
Aug 08 11:14:56 Lab2-73 apache2[3568]: ERROR: APACHE_PID_FILE needs to be define
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Control process exited, cod
Aug 08 11:14:56 Lab2-73 systemd[1]: Failed to start LSB: Apache2 web server.
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Unit entered failed state.
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Failed with result   'exit-co

1 个答案:

答案 0 :(得分:1)

请检查/etc/init.d/apache2/下的配置。 migth是一个错误的配置。看看this little guide

如果您无法找到错误,您也可以重新安装apache2,但请记住,您将丢失整个配置(取决于实际配置)