From MattWiki
Jump to: navigation, search

Installing php-fpm

yum install php-fpm

We will be using socket to connect to php-fpm, so you will need to change the default configuration to create a socket opposed to TCP.

vim /etc/php-fpm.d/www.conf

Around line 12, change listen from to /var/run/php-fpm.socket so it looks like:

listen = /var/run/php-fpm.socket

Then around line 39, change the user and group to nginx

user = nginx
group = nginx

Then start it:

chkconfig php-fpm on
service php-fpm start