title: phpmyadmin displays code not web page
body: <p>I was upgrading my distro, from kali(wheezy) to sid. But when I was setting up my web server, I reinstalled all over, apache2, php, mysql etc., but I get this error when I access <code>localhost/phpmyadmin</code>: that URL is not showing an index / login page of phpmyadmin, but showing the code. In my <code>/var/www</code> the default is index.html, I renamed it to index.php, and it's ok, page is loaded, I do the same with my other directory in <code>/var/www</code> I added index.php or foo.php and access it, no problem, but when I enter <code>phpmyadmin</code> it's showing code. I tried installing <code>phpminiadmin</code> and <code>adminer</code>, but I get the same error, both are showing the code and not the web page.</p>
  
  <p>Here is my <code>apache2.conf</code>
  <a href="http://pastebin.com/MLYNQc6S" rel="nofollow noreferrer">http://pastebin.com/MLYNQc6S</a></p>
  
  <p>And here is my spec :</p>
  
  <pre><code>#php -v
  PHP 5.5.7-2 (cli) (built: Dec 13 2013 00:25:07) 
  Copyright (c) 1997-2013 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
      with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
      with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
  
  
  
  # mysql --version
  mysql  Ver 14.14 Distrib 5.5.33, for debian-linux-gnu (i686) using readline 6.2
  
  
  # apache2 -v
  Server version: Apache/2.4.6 (Debian)
  Server built:   Aug 12 2013 18:20:23
  
  
  uname -a
  Linux angga.id 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali8 i686 GNU/Linux
  </code></pre>
  
  <p>and no error found in <code>my /var/log/apache2/*log</code></p>
  
  <p>I found this <a href="https://stackoverflow.com/questions/18060995/localhost-phpmyadmin-returns-php-code">Localhost/phpmyadmin/ returns php code</a> but didnt help.</p>
  
  <p>so whats wrong with my server ?</p>
  
  <p>EDIT 1 :
  Like @Matt said in first comment. <code>libapache2-mod-php5</code> is not installed, so I installing it with <code>apt-get</code> from repo.</p>
  
  <pre><code>apt-get install libapache2-mod-php5
  </code></pre>
  
  <p>but its return an error, like this.</p>
  
  <pre><code>dpkg: error processing libapache2-mod-php5 (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   libapache2-mod-php5
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  </code></pre>
  
  <p>I open synaptic and search for <code>libapache2-mod-php5</code> there are showing two package with that name <code>libapache2-mod-php5filter</code> and <code>libapache2-mod-php5</code> , I check it all, and install it, success, no error found, 
  i restart apache2 and go to <code>localhost/phpmyadmin</code> and its work.
  thanks for matt. </p>