Reputation: 125
I want to enable the "sockets" in PHP-fpm how can I do that?
`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.
I want to achieve a typical socket communication like Client and Server over the sockets.
How can I do that?
Upvotes: 4
Views: 14574
Reputation: 1844
You can also use install-php-extensions
in order to install and enable the sockets
PHP extension (as well as a ton of other PHP extensions):
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions sockets
More details on https://github.com/mlocati/docker-php-extension-installer
Upvotes: 0
Reputation: 2957
In Dockerfile you must enable extension - add this line:
RUN docker-php-ext-install sockets
Upvotes: 18