artrogue发表在 Linux面板2024-4-23 12:32 [复制链接] 7 887
面板、插件版本:8.0.6
8.0.6
系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)
问题描述:php7.4下在PHP扩展里安装了php_mongodb扩展,然后再网站目录下使用 composer require mongodb/mongodb 死活都是报错 Cannot use mongodb/mongodb 0.1.0 as it requires ext-phongo >=0.1.2 which is missing from your platform. Downloading https://packagist.org/providers/mongodb/mongodb.json [200] https://packagist.org/providers/mongodb/mongodb.json Reading /home/www/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-mongodb~mongodb.json from cache In PackageDiscoveryTrait.php line 318: [InvalidArgumentException] Package mongodb/mongodb has requirements incompatible with your PHP version , PHP extensions and Composer version: - mongodb/mongodb 1.18.0 requires ext-mongodb ^1.18.0 but it is not present. 复制代码 求助如何能顺利执行composer require mongodb/mongodb
然后再网站目录下使用 composer require mongodb/mongodb
死活都是报错
Cannot use mongodb/mongodb 0.1.0 as it requires ext-phongo >=0.1.2 which is missing from your platform. Downloading https://packagist.org/providers/mongodb/mongodb.json [200] https://packagist.org/providers/mongodb/mongodb.json Reading /home/www/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-mongodb~mongodb.json from cache In PackageDiscoveryTrait.php line 318: [InvalidArgumentException] Package mongodb/mongodb has requirements incompatible with your PHP version , PHP extensions and Composer version: - mongodb/mongodb 1.18.0 requires ext-mongodb ^1.18.0 but it is not present. 复制代码
相关截图(日志、错误):
artrogue 发表于 2024-4-24 09:24 此问题主要表现就是,安装了PHP的mongodb扩展后,使用composer require mongodb/mongodb 仍然检测不到php的 ...
宝塔用户_wrjnoy 发表于 2024-6-12 09:05 遇到同样的问题了。Linux面板 8.1.0版本 期待官方早日修复。
xxmmail 发表于 2024-7-17 12:45 php 7.4我也遇到这个问题了,面板版本9.1.0
本版积分规则 发表回复 回帖后跳转到最后一页
论坛响应时间:72小时
问题处理方式:排队(仅解答)
工作时间:白班:9:00 - 18:00
响应时间:3分钟
问题处理方式:宝塔专家1对1服务
工作时间:工作日:9:00 - 18:30
宝塔专业团队为您解决服务器疑难问题
工作时间:09:00至24:00