Ubuntu 22.04 apache2 无法启动

Ubuntu 22.04 apache2 无法启动

在新电脑(dell xps 13 plus)上全新安装 ubuntu 22.04

systemctl 启动 apache2

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

systemctl 状态 apache2.service

Nov 09 21:41:49 seb-XPS-9320 apachectl[21340]: [Wed Nov 09 21:41:49.267432 2022] 

[so:warn] [pid 21340] AH01574: module php7_module is already loaded, skipping
Nov 09 21:41:49 seb-XPS-9320 apachectl[21340]: [Wed Nov 09 21:41:49.267439 2022] [so:warn] [pid 21340] AH01574: module reqtimeout_module is already loaded, skipping
Nov 09 21:41:49 seb-XPS-9320 apachectl[21340]: [Wed Nov 09 21:41:49.267446 2022] [so:warn] [pid 21340] AH01574: module setenvif_module is already loaded, skipping
Nov 09 21:41:49 seb-XPS-9320 apachectl[21340]: [Wed Nov 09 21:41:49.267453 2022] [so:warn] [pid 21340] AH01574: module status_module is already loaded, skipping
Nov 09 21:41:49 seb-XPS-9320 apachectl[21340]: apache2: Syntax error on line 261 of /etc/apache2/apache2.conf: Syntax error on line 256 of /etc/apache2/sites-enabled/apache2.conf: Syntax error on line 2>
Nov 09 21:41:49 seb-XPS-9320 apachectl[21337]: Action 'start' failed.
Nov 09 21:41:49 seb-XPS-9320 apachectl[21337]: The Apache error log may have more information.
Nov 09 21:41:49 seb-XPS-9320 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Nov 09 21:41:49 seb-XPS-9320 systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 09 21:41:49 seb-XPS-9320 systemd[1]: Failed to start The Apache HTTP Server.

这是我在 /etc/apache2/apache2.conf 第 261 行的代码

IncludeOptional sites-enabled/*.conf

这是我在 /etc/apache2/sites-enabled/apache2.conf 第 256 行的代码

IncludeOptional sites-enabled/*.conf

这些话有什么问题?

相关内容