๐
Install PHP PECL modules
Modules are defined in bootstrapper's scope via pecl_extensions
var.
bash
# Get defined PECL modulescpcmd scope:get cp.bootstrapper pecl_extensions# Define new PECL modulescpcmd scope:set cp.bootstrapper pecl_extensions '[imagick,igbinary,redis,memcached]'
After setting pecl_extensions
to be installed, you should actually install them.
bash
# Build all modulesupcp -sb php/install-pecl-module# Build all modules for Multi-PHP installscd /usr/local/apnscp/resources/playbooksansible-playbook bootstrap.yml --tags=php/install-pecl-module --extra-vars=php_version=7.4 --extra-vars=multiphp_build=true