title: LAMP stack's PHP not working (Ubuntu 13.10 / Apache 2.4.6)
body: <p>Having problems with PHP on my LAMP stack: PHP scripts aren't being parsed at all. I setup Ubuntu 13.10 on clear machine... And I see now there only clear HTML from page but PHP tags are just like text</p>
  
  <p>Actually, what I have:</p>
  
  <p><strong><em>$ /usr/sbin/apache2ctl status | grep Version</em></strong></p>
  
  <pre><code>Server Version: Apache/2.4.6 (Ubuntu) PHP/5.5.3-1ubuntu2.1
  </code></pre>
  
  <p><strong><em>$ tail -n 1 /var/log/apache2/error.log</em></strong> </p>
  
  <pre><code>[Sat Dec 14 19:33:16.307184 2013] [core:notice] [pid 15457] AH00094: Command line: '/usr/sbin/apache2'
  </code></pre>
  
  <p><strong><em>$ apache2ctl -S</em></strong></p>
  
  <pre><code>VirtualHost configuration:
  *:80                   is a NameVirtualHost
           default server videosurgeon.ll (/etc/apache2/sites-enabled/vs.conf:1)
           port 80 namevhost videosurgeon.ll (/etc/apache2/sites-enabled/vs.conf:1)
           port 80 namevhost videosurgeon.ll (/etc/apache2/sites-enabled/vs.conf:1)
  ServerRoot: "/etc/apache2"
  Main DocumentRoot: "/var/www"
  Main ErrorLog: "/var/log/apache2/error.log"
  Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
  Mutex mpm-accept: using_defaults
  Mutex watchdog-callback: using_defaults
  Mutex rewrite-map: using_defaults
  PidFile: "/var/run/apache2/apache2.pid"
  Define: DUMP_VHOSTS
  Define: DUMP_RUN_CFG
  User: name="www-data" id=33 not_used
  Group: name="www-data" id=33 not_used
  </code></pre>
  
  <p><strong><em>$ apache2ctl -M | grep php</em></strong></p>
  
  <pre><code> php5_module (shared)
  </code></pre>
  
  <p><strong><em>$ cat /work/VS/httpdocs/test.php</em></strong></p>
  
  <pre><code>&lt;? phpinfo(); ?&gt;
  </code></pre>
  
  <p><strong><em>$ cat /etc/apache2/sites-enabled/vs.conf</em></strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      ServerName videosurgeon.ll
  
      DirectoryIndex index.php index.html index.htm
  
      DocumentRoot /work/VS/httpdocs/
  
      &lt;Directory /work/VS/httpdocs/&gt;
      Options FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
      &lt;/Directory&gt;
  
      ErrorLog /var/log/apache2/error.log
  
      # Possible values include: debug, info, notice, warn, error, crit,alert, emerg.
      LogLevel notice
  
      CustomLog /var/log/apache2/access.log combined
  &lt;/virtualHost&gt;
  </code></pre>
  
  <p><strong><em>$ /usr/bin/php --version</em></strong></p>
  
  <pre><code>PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:22:11) 
  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
  </code></pre>
  
  <hr>
  
  <p><strong>UPD.1:</strong> it's mine apache2.conf : <a href="http://ge.tt/6Yd8Jj91/v/0" rel="noreferrer">http://ge.tt/6Yd8Jj91/v/0</a></p>
  
  <hr>
  
  <p><strong>UPD.2:</strong> Today I умут tried to remove everything and just re-install LAMP. The result is exactly the same: <strong>PHP does not works.</strong></p>
  
  <pre><code>sudo apt-get install lamp-server^
  </code></pre>
  
  <p>But also interesting that phpmyadmin works fine. I just install it as:</p>
  
  <pre><code>sudo apt-get install php5 php5-cgi phpmyadmin 
  </code></pre>
  
  <p>It turns out that there (in phpmyadmin) are some settings that give it to use PHP...</p>