Welcome! Log In Create A New Profile

Advanced

ERROR FastCGI sent in stderr

February 01, 2017 02:47AM
ERROR:

2017/01/31 20:27:21 [error] 31486#31486: *16325 directory index of "/home/site/www/wp-content/uploads/2015/01/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/2015/01/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:21 [error] 31486#31486: *16329 directory index of "/home/site/www/wp-content/uploads/2015/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/2015/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:21 [error] 31486#31486: *16330 directory index of "/home/site/www/wp-content/uploads/2015/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/2015/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:21 [error] 31486#31486: *16326 directory index of "/home/site/www/wp-content/uploads/2015/01/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/2015/01/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:21 [error] 31486#31486: *16344 directory index of "/home/site/www/wp-content/uploads/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:21 [error] 31486#31486: *16339 directory index of "/home/site/www/wp-content/uploads/" is forbidden, client: 138.97.120.111, server: _, request: "GET /wp-content/uploads/ HTTP/1.1", host: "www.site.com"
2017/01/31 20:27:27 [error] 31486#31486: *16366 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 138.97.120.111, server: _, request: $
2017/01/31 20:27:27 [error] 31486#31486: *16368 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 138.97.120.111, server: _, request: $
2017/01/31 21:04:14 [error] 31486#31486: *21891 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 68.180.230.102, server: _, request: $
2017/01/31 23:20:38 [error] 31484#31484: *43194 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 207.46.13.177, server: _, request: "$
2017/01/31 23:47:14 [error] 31485#31485: *46839 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 2.81.49.247, server: _, request: "GE$
2017/02/01 00:00:45 [error] 31487#31487: *48397 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 68.180.230.102, server: _, request: $
2017/02/01 00:27:12 [error] 31484#31484: *50738 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 93.158.152.27, server: _, request: "$
2017/02/01 00:27:13 [error] 31484#31484: *50753 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 141.8.142.34, server: _, request: "G$
2017/02/01 00:27:14 [error] 31484#31484: *50738 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 93.158.152.27, server: _, request: "$
2017/02/01 00:27:15 [error] 31487#31487: *51205 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 141.8.142.196, server: _, request: "$
2017/02/01 00:27:16 [error] 31484#31484: *50753 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 141.8.142.34, server: _, request: "G$
2017/02/01 00:27:17 [error] 31484#31484: *50738 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/canalgama/www/wp-content/themes/nanomag/functions.php on line 456" while reading upstream, client: 93.158.152.27, server: _, request: "$
2017/02/01 00:36:23 [error] 31485
[/CODE]


my wordpress.conf:

[CODE]
##################################
# WORDPRESS NGINX CONFIGURATIONS
##################################
# /etc/nginx/wordpress.conf
#
# Contains a common configuration for use by nginx on a WordPress
# installation. This file should be included in any WordPress site
# nginx virtual host config located in sites-available with the following line:
#
# include /etc/nginx/wordpress.config;
#

# Attempt to rewrite wordpress in sub directory
rewrite ^/wp/([_0-9a-zA-Z-]+)/(xmlrpc\.php|wp-[0-9a-z-]+\.php) /wp/$2;
rewrite ^/wp/([_0-9a-zA-Z-]+)/(wp-(admin|content|includes).*) /wp/$2;


location / {
index index.php index.html;
try_files $uri $uri/ /index.php?$args;
}

#############
# Specify a charset
############
charset utf-8;

############
# GZIP
###########

gzip off;

#############
# Add trailing slash to */wp-admin requests.
############

rewrite /wp-admin$ $scheme://$host$uri/ permanent;


############
# this prevents hidden files (beginning with a period) from being served
############

location ~ /\. {
access_log off;
log_not_found off;
deny all;
}

###########
# SEND EXPIRES HEADERS AND TURN OFF 404 LOGGING
###########

location ~* ^.+.(xml|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off;
log_not_found off;
expires max;
}

############
# Pass uploaded files to wp-includes/ms-files.php.
############

# rewrite /files/$ /index.php last;

if ($uri !~ wp-content/plugins) {
rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;
}

# Rewrite multisite in a subdirectory '.../wp-.*' and '.../*.php'.
if (!-e $request_filename) {
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}

# Rewrite multisite '.../wp-.*' and '.../*.php'.
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) /wp$1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ /wp$1 last;
}

location ~ \.php$ {

# Try the files specified in order. In our case, try the requested URI and if
# that fails, try (successfully) to pass a 404 error.
# zero day exploit defense

try_files $uri =404;

# Include the fastcgi_params defaults provided by nginx

include /etc/nginx/fastcgi_params;

# The amount of time for upstream to wait for a fastcgi process to send data.
# We keep this *extremely* high so that one can be lazy when remote debugging.

fastcgi_read_timeout 3600s;

# Buffer size for reading the header of the backend FastCGI process.
# This defaults to the value of a single fastcgi_buffers, so does not
# need to be specified in our case, but it's good to be explicit.

fastcgi_buffer_size 128k;

# The number and size of the buffers into which the reply from the FastCGI
# process in the backend is read.
#
# 4 buffers at 128k means that any reply by FastCGI greater than 512k goes
# to disk and replies under 512k are handled directly in memory.

fastcgi_buffers 4 128k;

# SCRIPT_FILENAME is a required parameter for things to work properly,
# but was missing in the default fastcgi_params on upgrade to nginx 1.4.
# We define it here to be sure that it exists.

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_pass 127.0.0.1:9000;

}


############
# ROBOTS
###########

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}


############
# RESTRICTIONS
############

# Deny access to any files with a .php extension in the uploads directory
# Works in sub-directory installs and also in multisite network
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}


[/CODE]
Subject Author Posted

ERROR FastCGI sent in stderr

stomach February 01, 2017 02:47AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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