swoole / docker-swoole

🏄 Official Docker Image of Swoole
https://hub.docker.com/r/phpswoole/swoole
Apache License 2.0
526 stars 112 forks source link

install - PHP extendion like, php8.1-fpm, php8.1-common, php8.1-cli, php-pear #43

Closed mchterence closed 1 year ago

mchterence commented 1 year ago

@deminy

And may i know how can i install other PHP extendion like, php8.1-fpm, php8.1-common, php8.1-cli, php-pear anyway can add in DockFile?

and cannot found /run/php/php8.1-fpm.sock in run folder? is it related not install?

image

deminy commented 1 year ago

Hi there.

1. There is a section How to Install More PHP Extensions in the README file explaining how to install PHP extensions. There is another section More Examples in the README file showing how to install and configure PHP extensions.

2. To serve HTTP traffic, you can choose to use PHP-FPM or Swoole, but not both. They don't work well together. Thus the Swoole images don't have PHP-FPM included.

3. PEAR is included by default:

docker run --rm phpswoole/swoole  which pear # The output is: /usr/local/bin/pear

Hope the answer helps.