webirus
@webirus
Тыжверстальщик! Наверстай мне упущенное...

Почему падает апач и больше не поднимается?

Собственно, делаю по инструкции, которая помогала 2 года поднимать лампу.
senokosov.info/lamp/install-lamp#virtual_host

Но вот сегодня какая-то магия. Не могу запустить после подключения сайта.

Апач поднимается нормально, перезагружаешь систему, все работает идеально.
Рестарт самого апача отрабатывает нормально.

Но стоит только добавить сайт sudo a2ensite testsite апач намертво падает.

Дальше любые действия с ним приводят к сообщению:

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

Содержимое systemctl status apache2.service
● 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 Ср 2017-06-28 18:07:11 MSK; 3min 59s
     Docs: man:systemd-sysv-generator(8)
  Process: 3980 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
  Process: 3960 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAI
  Process: 4089 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU
июн 28 18:07:11 mastercomp systemd[1]: apache2.service: Failed with result 'exit
июн 28 18:07:12 mastercomp systemd[1]: Stopped LSB: Apache2 web server.
июн 28 18:07:12 mastercomp systemd[1]: apache2.service: Start request repeated t
июн 28 18:07:12 mastercomp systemd[1]: Failed to start LSB: Apache2 web server.
июн 28 18:07:12 mastercomp systemd[1]: Stopped LSB: Apache2 web server.
июн 28 18:07:12 mastercomp systemd[1]: apache2.service: Start request repeated t
июн 28 18:07:12 mastercomp systemd[1]: Failed to start LSB: Apache2 web server.
июн 28 18:07:13 mastercomp systemd[1]: Stopped LSB: Apache2 web server.
июн 28 18:07:13 mastercomp systemd[1]: apache2.service: Start request repeated t
июн 28 18:07:13 mastercomp systemd[1]: Failed to start LSB: Apache2 web server.

Содержимое /var/log/apache2/error.log
[Wed Jun 28 15:59:12.167794 2017] [mpm_event:notice] [pid 30338:tid 140671736522624] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 15:59:12.167905 2017] [core:notice] [pid 30338:tid 140671736522624] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 15:59:27.973320 2017] [mpm_event:notice] [pid 30338:tid 140671736522624] AH00491: caught SIGTERM, shutting down
[Wed Jun 28 15:59:29.057746 2017] [mpm_prefork:notice] [pid 4126] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 15:59:29.057863 2017] [core:notice] [pid 4126] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 15:59:30.490107 2017] [mpm_prefork:notice] [pid 4126] AH00169: caught SIGTERM, shutting down
[Wed Jun 28 15:59:31.626567 2017] [mpm_prefork:notice] [pid 4241] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 15:59:31.626626 2017] [core:notice] [pid 4241] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:03:46.131531 2017] [mpm_prefork:notice] [pid 1534] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:03:46.146986 2017] [core:notice] [pid 1534] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:10:19.311772 2017] [mpm_prefork:notice] [pid 1534] AH00171: Graceful restart requested, doing 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 Jun 28 17:10:19.344169 2017] [mpm_prefork:notice] [pid 1534] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:10:19.344191 2017] [core:notice] [pid 1534] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:10:24.721609 2017] [mpm_prefork:notice] [pid 1534] AH00169: caught SIGTERM, shutting down
[Wed Jun 28 17:10:25.836542 2017] [mpm_prefork:notice] [pid 2776] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:10:25.836613 2017] [core:notice] [pid 2776] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:10:28.362389 2017] [mpm_prefork:notice] [pid 2776] AH00169: caught SIGTERM, shutting down
[Wed Jun 28 17:10:29.500654 2017] [mpm_prefork:notice] [pid 2833] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:10:29.500720 2017] [core:notice] [pid 2833] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:10:35.227818 2017] [mpm_prefork:notice] [pid 2833] AH00171: Graceful restart requested, doing 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 Jun 28 17:10:35.257246 2017] [mpm_prefork:notice] [pid 2833] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:10:35.257268 2017] [core:notice] [pid 2833] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 17:10:37.320857 2017] [mpm_prefork:notice] [pid 2833] AH00169: caught SIGTERM, shutting down
[Wed Jun 28 17:10:38.433085 2017] [mpm_prefork:notice] [pid 2926] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jun 28 17:10:38.433150 2017] [core:notice] [pid 2926] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 28 18:07:08.365971 2017] [mpm_prefork:notice] [pid 2926] AH00169: caught SIGTERM, shutting down

  • Вопрос задан
  • 555 просмотров
Пригласить эксперта
Ответы на вопрос 1
andreybold
@andreybold
Совсем не спец по апачу, но в логе смутила строка: "AH00169: caught SIGTERM, shutting down"
Полез, поискал, нашёл вот что:
forum.ispsystem.ru/showthread.php?7976-caught-SIGT...

Попробуй, может поможет...
Ответ написан
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы