ubuntu apache 2 segmentation fault (core dumped) Ошибка - причина и Решение
Primary tabs
Судя пор всему проблема возникает в т.ч. при включении/выключении модулей php.
Пример ответа команды sudo service apache2 status
:
● 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: inactive (dead) since Вт 2019-09-10 14:43:21 MSK; 2min 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 19335 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 14873 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 19318 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)сен 10 14:43:21 sergey-System-Product-Name systemd[1]: Starting LSB: Apache2 web server...
сен 10 14:43:21 sergey-System-Product-Name apache2[19318]: * Starting Apache httpd web server apache2
сен 10 14:43:21 sergey-System-Product-Name apache2[19318]: AH00558: apache2: Could not reliably determine the server's fully qualified domain n
сен 10 14:43:21 sergey-System-Product-Name apache2[19318]: Segmentation fault (core dumped)
сен 10 14:43:21 sergey-System-Product-Name apache2[19318]: Action 'start' failed.
сен 10 14:43:21 sergey-System-Product-Name apache2[19318]: The Apache error log may have more information.
сен 10 14:43:21 sergey-System-Product-Name apache2[19335]: * Stopping Apache httpd web server apache2
сен 10 14:43:21 sergey-System-Product-Name apache2[19335]: *
сен 10 14:43:21 sergey-System-Product-Name systemd[1]: Started LSB: Apache2 web server.
сен 10 14:43:31 sergey-System-Product-Name systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
Причина
В нашем случае оказалось что было одновременно включено два модуля php
Узнали это командой:
a2dismod
Она вывела подсказку- список активных модулей, которые можно выключить:
access_compat authn_file autoindex filter php5.6 alias authz_core deflate mime php7.3 auth_basic authz_host dir mpm_prefork setenvif authn_core authz_user env negotiation status
Решение
Мы выключили php5.6:
sudo a2dismod php5.6
После этого сервис апача перезагрузился нормально:
sudo service apache2 restart
Спасибо за решение @math2
- Log in to post comments
- 2619 reads