Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable sockets extension in php-fpm?

Tags:

php

docker

nginx

I want to enable the "sockets" in PHP-fpm how can I do that?

As in XAMPP: file php.ini

 `extension=sockets`

I have docker where I have installed the Nginx server and PHP-fpm. Now I want to enable the sockets extension as I have in the XAMPP server as above in the quotes.

Want to achieve:

I want to achieve a typical socket communication like Client and Server over the sockets.

How can I do that?

like image 476
MHEMBINT Avatar asked Oct 20 '25 03:10

MHEMBINT


1 Answers

In Dockerfile you must enable extension - add this line:

RUN docker-php-ext-install sockets
like image 72
Maksim Avatar answered Oct 21 '25 18:10

Maksim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!