Welcome! Log In Create A New Profile

Advanced

Re: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Sergey Budnevitch
September 24, 2012 06:32AM
On 24 Sep2012, at 03:40 , chatchat <nginx-forum@nginx.us> wrote:

> Hello,
>
> I went to setup Nginx with php-fpm.
>
> I have3 vhosts for the moment .
> I made a script to create vhost and pool file for php-fpm.

According to your configs, php chroot into /home/domain/ directory,
and SCRIPT_FILENAME in case of /phpinfo.php is setted to /home/domain/www/phpinfo.php.
So php look for php script file with relative path /home/domain/www/phpinfo.php and
absolute path /home/domain/home/domain/www/phpinfo.php and can not find it.

>
> I don't know why but my firsts 2 vhosts work but not the third, i obtain
> this message in a blank page :
> File not found.
>
> So, in my log error file :
> 2012/09/24 00:57:12 [error] 23782#0: *422 FastCGI sent in stderr: "Primary
> script unknown" while reading response header from upstream, client:
> XX.XX.XX.XX, server: domain.com, request: "GET /phpinfo.php HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:9003", host: "www.domain.com"

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

chatchat September 23, 2012 07:40PM

Re: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Sergey Budnevitch September 24, 2012 06:32AM

Re: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

cmpan October 31, 2012 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready