title: phpMyAdmin - Error The json extension is missing
body: <p>I have installed on Ubuntu PHP, MySQL, apache and phpmyadmin. When I try to open via browser phpmyadmin I got this error</p>
  <blockquote>
  <p>phpMyAdmin - Error</p>
  <p>The json extension is missing. Please check your PHP configuration.</p>
  </blockquote>
  <p>There are a lot of similar thread and I have tried a lot of solutions provided in them but none is helped me to fix this issue. Firstly I tried to install this extension like <code>sudo apt-get install php5-json</code> and this is the result</p>
  <pre><code>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)
  </code></pre>
  <p>So obviously I have the latest version of php5-json - <code>php5-json is already the newest version.</code>
  This is my version of Ubuntu</p>
  <pre><code>DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=14.04
  DISTRIB_DESCRIPTION=&quot;Ubuntu 14.04.1 LTS&quot;
  </code></pre>
  <p>But I have no idea how to fix the error?</p>