A
A
Alexander Kuzmin2014-02-04 03:41:42
PHP
Alexander Kuzmin, 2014-02-04 03:41:42

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;
}

error.log:
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"

Simple documents - receives normally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kuzmin, 2014-02-04
@Windler

In general, php-fpm cannot get files from a mounted partition.
How to run it as root?

S
Skazik, 2014-02-04
@Skazik

/etc/php/fpm-php5.3/php-fpm.conf
user=root
group=root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question