如何解决NextCloud的PCNTL扩展提示?
- By : Will
- Category : Cloud storage

Cloud storage
1 前言
一个问题,一篇文章,一出故事。
笔者今天尝试NextCloud的以下指令,
occ config:system:get office.allowList occ config:system:set --value="10.168.0.128" office.allowList
遇到如下错误提示,
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php Additionally the function 'pcntl_signal' and 'pcntl_signal_dispatch' need to be enabled in your php.ini.
2 最佳实践
2.1 编译并安装插件
cd ~/php-8.3.7/ext/pcntl/ phpize ./configure make make install rsync -avP /usr/lib64/extensions/no-debug-zts-20230831/ /usr/lib64/php-zts/modules/
2.2 加载插件
echo 'extension=pcntl' > /etc/php.d/pcntl.ini systemctl reload php-fpm
没有评论