如何在CentOS上为PHP 7安装json扩展? [英] How to install json extension for PHP 7 on CentOS?
本文介绍了如何在CentOS上为PHP 7安装json扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
On my server I had PHP 5 installed previously .I upgraded it to PHP 7 by following the steps from here But when I try to install the composer for the using laravel ,it shows
The json extension is missing.Install it or recompile php without --disable-json"
然后我尝试在服务器上安装json扩展,它显示以下错误
Then I tried installing the json extension on the server ,it shows the following error
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
经过数小时的互联网搜索,我仍然找不到任何解决方案.有人可以帮我吗?
After hours of searching the internet, I couldn't still find any solution. Can somebody help me please ?
推荐答案
您可以使用以下命令在centos中安装PHP 7的JSON扩展.
You can install JSON extension for PHP 7 in centos using below command.
sudo yum install php70u-json
这篇关于如何在CentOS上为PHP 7安装json扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文