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

這些行有什麼問題嗎?

相關內容