标签:配置文件 pen rect 解析 fast tail color usr cto
php-fpm 没有开启导致nignx不能解析http://blog.csdn.net/programmer360/article/details/20539651
Php-fpm报错
ERROR: failed to open configuration file ‘/private/etc/php-fpm.conf‘: No such file or directory (2)
cp /usr/local/php/etc/php-fpm.conf.default /private/etc/php-fpm.conf
ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2) 可以改php-fpm.conf配置文件里面的error_log位置
或者指定php-fpm --fpm-config /usr/local/etc/php-fpm.conf --prefix /usr/local/var
配置
location ~ \.php$ {
root /usr/local/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
或者 fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
标签:配置文件 pen rect 解析 fast tail color usr cto
原文地址:http://www.cnblogs.com/keiweila/p/7965351.html