Difference between #2 and #6 of
Using Yii with Nginx and PHP-FPM

Changes

Title changed

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.allowed_clients = 127.0.0.1
 
listen.owner = USER
listen.group = GROUP
listen.mode = 0666
;listen.backlog = 4096
user = USER
group = GROUP
[...]
18 0
20 followers
Viewed: 108 648 times
Version: 1.1
Category: How-tos
Written by: Leric
Last updated by: grigori
Created on: Feb 28, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history