![无法重新启动 Apache2](https://linux22.com/image/911920/%E6%97%A0%E6%B3%95%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20Apache2.png)
我一直尝试启动/重新启动 Apache2,但一次又一次地出现相同的错误。已经查阅了许多问题或难题,但没有人能够解决我的问题。使用带有 Apache2 和 php7.0 的 Ubuntu 18.04。
因此,问题是当我执行命令时:
/etc/init.d/apache2 restart 我收到此错误:
重新启动 apache2(通过 systemctl):apache2.service 的 apache2.serviceJob 失败,因为控制进程退出并显示错误代码。有关详细信息,请参阅“systemctl status apache2.service”和“journalctl -xe”。失败!
执行systemctl status --no-pager --full apache2
返回:
May 19 18:32:25 lnxcp.cp016.net systemd[1]: Starting The Apache HTTP Server...
May 19 18:32:25 lnxcp.cp016.net apachectl[13384]: AH00526: Syntax error on line 17 of /home/admin/conf/web/essed.it.apache2.conf:
May 19 18:32:25 cp016.net apachectl[13384]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
May 19 18:32:25 lnxcp.cp016.net apachectl[13384]: Action 'start' failed.
May 19 18:32:25 lnxcp.cp016.net apachectl[13384]: The Apache error log may have more information.
May 19 18:32:25 lnxcp.cp016.net systemd[1]: apache2.service: Control process exited, code=exited status=1
May 19 18:32:25 lnxcp.cp016.net systemd[1]: apache2.service: Failed with result 'exit-code'.
May 19 18:32:25 lnxcp.cp016.net systemd[1]: Failed to start The Apache HTTP Server.
我是 Linux/Ubuntu 的新手,有人可以帮助我吗?谢谢!