OpenVZ Forum


Home » General » Support » php-fpm core dumps inside container / how to enable?
php-fpm core dumps inside container / how to enable? [message #52680] Wed, 07 December 2016 08:33 Go to next message
stephan-zrh is currently offline  stephan-zrh
Messages: 1
Registered: December 2016
Junior Member
From: *pub.wingo.ch
Hello,

One of our customers with an OpenVZ-Container wishes to enable Core Dumps for php-fpm.

They write that they need to perform the following command:
# echo '/var/tmp/coredump-%e.%p' > /proc/sys/kernel/core_pattern


which results in the following:
bash: /proc/sys/kernel/core_pattern: Permission denied


I'm not sure, where to enable this.

The hardware node is running Debian (Proxmox) and the container is Centos 6.

Is there documentation regarding the change of this setting?
Do I have to enable this on the hardware-node and how? Is a reboot (of the container?) necessary?
Will this have consequences on other containers running on the same node?

Any pointers are greatly appreciated.

Kind regards -Stephan
Re: php-fpm core dumps inside container / how to enable? [message #52681 is a reply to message #52680] Wed, 07 December 2016 09:15 Go to previous message
khorenko is currently offline  khorenko
Messages: 479
Registered: January 2006
Location: Moscow, Russia
Senior Member
From: *sw.ru
Don't know about OpenVZ 6 - did not try, but quickly checked on Virtuozzo 7 + CentOS 7 Container: works out of the box.

# echo '/var/tmp/coredump-%e.%p' > /proc/sys/kernel/core_pattern
# cat /proc/sys/kernel/core_pattern
/var/tmp/coredump-%e.%p


If you problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: Network / shared storage support on VZ7
Next Topic: Do you support GPU pass-through for VMs?
Goto Forum:
  


Current Time: Tue Sep 26 16:33:15 GMT 2017