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
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: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
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 your 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 Mar 19 03:00:30 GMT 2024

Total time taken to generate the page: 0.02273 seconds