D
D
Dmitry2018-08-29 16:25:12
PHP
Dmitry, 2018-08-29 16:25:12

How to allow SOCK_RAW generation for php-fpm?

Kind!

I can not in any way allow the creation of SOCK_RAW for nginx + php-fpm in an LXC container.

There is a simple monitoring software ( www.phpservermonitor.org/) that can also monitor the availability of servers by icmp ping. To do this, at the time of the poll, SOCK_RAW is created in php.

But when creating a socket, php-fpm throws an error:

FastCGI sent in stderr: "PHP message: PHP Warning:  socket_create(): 
Unable to create socket [1]: Operation not permitted


How do I allow socket creation?

The error appears in nginx+php-fpm7 on Debian 9 and Alpine 3.7 in an LXC container.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question