Welcome! Log In Create A New Profile

Advanced

Error... FastCGI sent in stderr:

Posted by Hecticscale 
Error... FastCGI sent in stderr:
January 16, 2014 04:40PM
Hi,

Im new here and would like to get a little support for an ongoing issue please.

My nginx log is filled with the same error as displayed below. I receive over 100 daily.

2014/01/16 21:11:08 [error] 1334#0: *576 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 134.249.51.183, server: dnbheaven.com, request: "GET /viewforum.php?f=26 HTTP/1.0", upstream: "fastcgi://unix:/home/dnbheaven/techinfo/socks/php5-fpm.sock:", host: "dnbheaven.com", referrer: "http://dnbheaven.com/viewforum.php?f=26"

Here is my nginx conf

server {
listen 80;
client_max_body_size 1G;
charset utf-8;
root /home/dnbheaven/WWW;
index index.php index.html index.htm;
add_header "X-UA-Compatible" "IE=Edge,chrome=1";
access_log /home/logs/dnbheaven.access.log;
error_log /home/logs/dnbheaven.error.log;

# Make site accessible from http://localhost/
server_name dnbheaven.com www.dnbheaven.com;

## redirect www to no_www
if ($host = 'www.dnbheaven.com' ) {
rewrite ^/(.*)$ http://dnbheaven.com/$1 permanent;
}

location / {
# phpbb uses index.htm
try_files $uri $uri/ /index.php;
}

location ~ \.php$ {
fastcgi_pass dnbheaven-php;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include mime.types;
}

# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.
internal;
}

# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
}



Edited 1 time(s). Last edit at 01/16/2014 04:41PM by Hecticscale.
Re: Error... FastCGI sent in stderr:
January 17, 2014 02:00AM
I found a solution....

location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass dnbheaven-php;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include mime.types;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
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