PhpMyAdmin - Error Json extension is missing
I have installed PHP, MySQL, apache and phpmyadmin on Ubuntu. When I try to open through phpmyadmin browser I got this error
phpMyAdmin - Error
The json extension is missing. Check your PHP configuration.
There are many similar threads and I tried many solutions provided in them, but none of them helped me solve this problem. I first tried to install this extension for example sudo apt-get install php5-json
and this is the result
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)
So I have the latest php5-json - php5-json is already the newest version.
This is my Ubuntu version
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
But I don't know how to fix the error?
source to share
Flag the latest post with this link: Ubuntu Forum Topic: dpkg: javascript-common error
Next install the package "javascript-common", the next package is json.
source to share