【问题标题】:phpMyAdmin - Error The json extension is missingphpMyAdmin - 错误缺少 json 扩展名
【发布时间】:2015-03-05 06:20:12
【问题描述】:

我在 Ubuntu 上安装了 PHP、MySQL、apache 和 phpmyadmin。当我尝试通过浏览器 phpmyadmin 打开时出现此错误

phpMyAdmin - 错误

缺少 json 扩展名。请检查您的 PHP 配置。

有很多类似的线程,我已经尝试了很多其中提供的解决方案,但没有一个可以帮助我解决这个问题。首先我尝试安装这个扩展,比如sudo apt-get install php5-json,结果就是这样

sudo apt-get install php5-json
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-json is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

显然我有最新版本的 php5-json - php5-json is already the newest version. 这是我的 Ubuntu 版本

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"

但我不知道如何修复错误?

【问题讨论】:

    标签: mysql ubuntu phpmyadmin


    【解决方案1】:

    查看此链接的最后一条消息:Ubuntu Forum Thread: dpkg: javascript-common error

    接下来安装“javascript-common”包,下一个 json 包。

    【讨论】:

    • 感谢您的回答。我删除了javascript-common 并重新安装了它。现在我的javascript没有错误但仍然无法运行phpmyadmin..
    • 只要“缺少 json 扩展”?
    • 我删除了phpmyadmin,然后再次安装并在您提供给我的链接中执行了步骤,现在可以正常工作了。谢谢
    猜你喜欢
    • 2016-06-19
    • 2018-12-11
    • 2018-05-22
    • 2017-04-23
    • 2017-11-20
    • 2017-07-16
    • 2019-05-23
    • 2013-06-29
    • 2012-01-03
    相关资源
    最近更新 更多