Answer the question
In order to leave comments, you need to log in
How to make php-fpm handle php?
Sup, Toaster.
I can't help but get php-fpm to process php.
Writes: File not found.
Config for .php:
location ~ \.php$ {
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/tmp/wwwpool.sock;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/windler/www$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED /home/windler/www$fastcgi_script_name;
}
2014/02/03 16:40:09 [error] 7411#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.220.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/wwwpool.sock:", host: "192.168.220.132"
Answer the question
In order to leave comments, you need to log in
In general, php-fpm cannot get files from a mounted partition.
How to run it as root?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question