@Batyabest

Не запускается Apache2?

Почему-то не хочет запускаться Апач
apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-09-21 13:58:02 MSK; 12min ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 10693 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 16ms

сен 21 13:58:02 user systemd[1]: Starting The Apache HTTP Server...
сен 21 13:58:02 user apachectl[10693]: Action 'start' failed.
сен 21 13:58:02 user apachectl[10693]: The Apache error log may have more information.
сен 21 13:58:02 user systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
сен 21 13:58:02 user systemd[1]: apache2.service: Failed with result 'exit-code'.
сен 21 13:58:02 user systemd[1]: Failed to start The Apache HTTP Server.


UPD:
error.log

[Wed Sep 21 12:12:38.262001 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Sep 21 12:12:38.262444 2022] [core:notice] [pid 12826:tid 140321152898944] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 21 12:35:52.565985 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Sep 21 12:35:52.569283 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Sep 21 12:35:52.569289 2022] [core:notice] [pid 12826:tid 140321152898944] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 21 13:21:09.055967 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Sep 21 13:21:09.059223 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Sep 21 13:21:09.059230 2022] [core:notice] [pid 12826:tid 140321152898944] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 21 13:26:53.100388 2022] [mpm_event:notice] [pid 12826:tid 140321152898944] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Sep 21 13:27:38.448143 2022] [mpm_event:notice] [pid 1437:tid 140529178023808] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Sep 21 13:27:38.467334 2022] [core:notice] [pid 1437:tid 140529178023808] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 21 13:32:57.934778 2022] [mpm_event:notice] [pid 1437:tid 140529178023808] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Sep 21 13:32:57.938683 2022] [mpm_event:notice] [pid 1437:tid 140529178023808] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Sep 21 13:32:57.938690 2022] [core:notice] [pid 1437:tid 140529178023808] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 21 13:49:24.480300 2022] [mpm_event:notice] [pid 1437:tid 140529178023808] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(21)Is a directory: AH00091: apache2: could not open error log file /var/www/site.local/public_html.
[Wed Sep 21 13:49:24.483689 2022] [:emerg] [pid 1437:tid 140529178023808] AH00019: Unable to open logs, exiting
(21)Is a directory: AH00091: apache2: could not open error log file /var/www/site.local/public_html.
AH00015: Unable to open logs
(21)Is a directory: AH00091: apache2: could not open error log file /var/www/site.local/public_html.
AH00015: Unable to open logs
  • Вопрос задан
  • 1340 просмотров
Пригласить эксперта
Ответы на вопрос 1
@AUser0
Чем больше знаю, тем лучше понимаю, как мало знаю.
В настройках не указан ServerName, а в качестве log-файла указано /var/www/site.local/public_html. Это некорректно, обычно указывают /var/log/apache/error.log.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы