Difference between #3 and #5 of
Using Yii with Nginx and PHP-FPM

Revision #5 has been created by grigori on Jul 20, 2011, 1:28:44 PM with the memo:

updated FPM config - commented the socket, added tcp port
« previous (#3) next (#6) »

Changes

Title unchanged

Using Yii with Nginx and PHP-FPM

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

nginx, php-fpm, php5-fpm, rewrite, ubuntu

Content changed

[...]
# Implement upstream connection to PHP-FPM
# "phpfpm" here is a name for this upstream connection, which you can customize
# I create a custom upstream connection per vhost, to better segregate PHP processes by vhost
# To do the same, you need a unique upstream name, and a unique filename for your php5-fpm.sock file
upstream phpfpm {
#server unix:/var/run/php5-fpm.sock;     #avoid sockets for nginx-fpm on Linux, they are good for BSD
 
    server 127.0.0.1:9000;
 
}

server {
[...]
# Include the standard fastcgi_params file included with nginx
include fastcgi_params;
        fastcgi_param  PATH_INFO        $fastcgi_path_info;
 
fastcgi_index index.php;
# Override the SCRIPT_FILENAME variable set by fastcgi_params
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
[...]
[phpfpm]

;listen = /var/run/php5-fpm.sock listen = 127.0.0.1:9000
 
listen.owner = USER
listen.group = GROUP
listen.mode = 0666
;listen.backlog = 4096
user = USER
group = GROUP
[...]
18 0
20 followers
Viewed: 66 051 times
Version: 1.1
Category: How-tos
Written by: Leric
Last updated by: grigori
Created on: Feb 28, 2011
Last updated: 6 years ago
Update Article

Revisions

View all history