I
I
Ivan Ivanov2018-07-03 09:33:01
Apache HTTP Server
Ivan Ivanov, 2018-07-03 09:33:01

How to setup CoreDumpDirectory in apache?

Periodically, errors start to appear on the server in /var/log/apache2/error.log

[Sat Jun 30 16:24:04.235870 2018] [core:notice] [pid 14059] AH00052: child pid 8211 exit signal Segmentation fault (11)
[Sat Jun 30 16:24:05.237066 2018] [core:notice] [pid 14059] AH00052: child pid 8213 exit signal Segmentation fault (11)
[Sat Jun 30 16:24:08.240572 2018] [core:notice] [pid 14059] AH00052: child pid 8214 exit signal Segmentation fault (11)
[Sat Jun 30 16:24:08.240614 2018] [core:notice] [pid 14059] AH00052: child pid 8215 exit signal Segmentation fault (11)

To find out the reason, I tried to use the article https://habr.com/company/bitrix/blog/153001/
On the command line:
echo "/tmp/httpd-core.%p" > /proc/sys/kernel/core_pattern
ulimit -с unlimited

Added a line to
apache - core -1
/etc/security/limits.conf In /etc/apache2/apache2.conf added a line
CoreDumpDirectory /tmp
then
service apache2 restart
However, dumps are not created after the test:
ps aux | grep apache2
…
kill -11 12345

, there is no substring ", possible coredump in /tmp" in the logs
What should I do to start creating dumps? OS Debian 8, costs VestaCP. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndrewIvanoff, 2018-07-14
@AndrewIvanoff

I saw the task on fl.ru
, I can probably help
skype: live:web.real.81

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question