title: How to really enable php-fpm with apache?
body: <p>I installed apache2.4 and php-fpm, but I still have php5-cgi processing my requests, althought php-fpm process is running.</p>
  
  <p>Here is what I did :</p>
  
  <pre><code>apt-get install php5-fpm
  apt-get install libapache2-mod-fastcgi
  a2enmod actions
  </code></pre>
  
  <p>Edit /etc/apache2/mods-available/fastcgi.conf like that :</p>
  
  <pre><code>&lt;IfModule mod_fastcgi.c&gt;
  AddHandler php5-fcgi .php
  Action php5-fcgi /php5-fcgi
  Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
  FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header  Authorization
  &lt;Directory /usr/lib/cgi-bin&gt;
  Require all granted
  &lt;/Directory&gt;
  &lt;/IfModule&gt;
  
  service apache2 restart
  </code></pre>
  
  <p>But now if I run phpinfo() I get :</p>
  
  <pre><code>Server API  CGI/FastCGI
  </code></pre>
  
  <p>instead of FPM/FastCGI</p>