I installed apache2.4 and php-fpm, but I still have php5-cgi processing my requests, althought php-fpm process is running.
Here is what I did :
apt-get install php5-fpm
apt-get install libapache2-mod-fastcgi
a2enmod actions
Edit /etc/apache2/mods-available/fastcgi.conf like that :
<IfModule mod_fastcgi.c>
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
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
service apache2 restart
But now if I run phpinfo() I get :
Server API CGI/FastCGI
instead of FPM/FastCGI