如何在 CentOS 上为 PHP 7 安装 json 扩展?
How to install json extension for PHP 7 on CentOS?
在我的服务器上,我之前安装了 PHP 5。我按照 here 中的步骤将其升级到 PHP 7 但是当我尝试安装作曲家使用laravel ,显示
The json extension is missing.Install it or recompile php without --disable-json"
然后我尝试在服务器上安装 json 扩展,它显示以下错误
Error: php70u-cli conflicts with php-cli-5.5.38-8.el7.remi.x86_64
Error: php70u-common conflicts with php-common-5.5.38-8.el7.remi.x86_64
在互联网上搜索了几个小时后,我仍然找不到任何解决方案。有人可以帮我吗?
您可以使用以下命令在 centos 中为 PHP 7 安装 JSON 扩展。
sudo yum install php70u-json
在我的服务器上,我之前安装了 PHP 5。我按照 here 中的步骤将其升级到 PHP 7 但是当我尝试安装作曲家使用laravel ,显示
The json extension is missing.Install it or recompile php without --disable-json"
然后我尝试在服务器上安装 json 扩展,它显示以下错误
Error: php70u-cli conflicts with php-cli-5.5.38-8.el7.remi.x86_64
Error: php70u-common conflicts with php-common-5.5.38-8.el7.remi.x86_64
在互联网上搜索了几个小时后,我仍然找不到任何解决方案。有人可以帮我吗?
您可以使用以下命令在 centos 中为 PHP 7 安装 JSON 扩展。
sudo yum install php70u-json