3
nginx에서 php5-fpm conf가 올바르게 작동합니다. 그러나 어제는 효과가 없었습니다. LS를 제공 한 후우분투에서 nginx php5-fpm conf 파일 누락 14.04
[05-Jul-2016 08:59:32] ERROR: failed to open configuration file '/etc/php5/fpm/php-fpm.conf': No such file or directory (2)
[05-Jul-2016 08:59:32] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
[05-Jul-2016 08:59:32] ERROR: FPM initialization failed
이, /etc/php5/fpm/conf.d 및 /etc/php5/fpm/pool.d에 명령 :
PHP5-FPM -t 명령을 제공 한 후, 나는 오류 다음 얻을 파일이 없습니다.
내 Nginx에의 conf는 :
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html;
index index.html index.htm index.php;
server_name localhost;
location/{
try_files $uri $uri/ /index.php?$query_string;
#try_files $uri $uri/ =404;
#try_files $uri $uri/ /index.php$is_args$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}