fastcgi_pass
Ubuntu PHP fastcgi_pass 常用指令
Categories:
fastcgi_pass
fastcgi_pass
是指定用来解译 PHP 程式的端口
设定档
路径:
/etc/nginx/site-enabled/xxx
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
}
路径:
/etc/php/7.0/fpm/pool.d/www.conf
listen = /run/php/php7.0-fpm.sock
;listen = 127.0.0.1:9000