I had apache and php5 already installed and wanted to switch to fpm-php. I performed the following steps and my phpinfo() still shows that the Server API is Apache 2.0 Handler! I am running ubuntu 12.04 Can someone help me out
Steps taken to the install;
- apt-get install libapache2-mod-fastcgi php5-fpm php5
- a2enmod actions fastcgi alias
- service apache2 restart
Edited etc/apache2/conf.d/php5-fpm.conf
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 /tmp/php5-fpm.sock -pass-header Authorization
edited /etc/php5/fpm/pool.d/www.conf
listen = /tmp/php5-fpm.sock
- service php5-fpm restart service apache2 restart
I tried with
<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 -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>`
and
listen = 127.0.0.1:9000
no luck.
apache2-mpm-worker
with external external php, but this is not the reason for your problem here - are you sure you have removed / disabled the mod_php configuration? – Michel Feldheim