Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wordpress and Nginx error in wflog

165 views
Skip to first unread message

The Doctor

unread,
Sep 29, 2021, 12:37:42 AM9/29/21
to
Hello I am seeing

2021/09/28 21:24:33 [error] 6064#100404: *151293 FastCGI sent in stderr: "PHP message: Unable to open /path/to/wordpress/wp-content/wflogs/ips.php for reading and writing.PHP message: Unable to open /path/to/wordpress/html/wp-content/wflogs/ips.php for reading and writing" while reading response header from upstream, client: X4, server: wordpress.website, request: "GET /wp-json/jetpack/v4/jitm?message_path=wp%3Aplugin-install%3Aadmin_notices&query=&full_jp_logo_exists=false&_wpnonce=152a25feb9 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "wordpress.website", referrer: "https://wordpress.website/wp-admin/plugin-install.php"

In the nginx configuration I have


#
server {
listen 204.209.81.235:443 ssl http2;
server_name wordpress.website;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

access_log /var/log/httpd/site-access_log combined;
error_log /var/log/httpd/site-error_log ;
ssl_certificate /etc/ssl/certs/wp.ws.2021.chain.cert;
ssl_certificate_key /etc/ssl/certs/wp.ws.2021.key.orig;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_dhparam /etc/ssl/dhparams.pem;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA HIGH !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
ssl_prefer_server_ciphers on;

location / {
root /path/to/wordpress/site/;
index index.php index.phtml index.shtml index.html index.htm;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last;
}

}



location ~ \.php$ {
#root tml;
#try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;

# Mitigate https://httpoxy.org/ vulnerabilities
#fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/worpress/site$fastcgi_script_name;
include /usr/local/etc/nginx/fastcgi_params;
}


location ~ \.phtml$ {
#root tml;
#try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;

# Mitigate https://httpoxy.org/ vulnerabilities
#fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.phtml;
fastcgi_param SCRIPT_FILENAME /path/to/wordpress/site$fastcgi_script_name;
include /usr/local/etc/nginx/fastcgi_params;
}


error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /path/to/wordpress/site/;
}


location /cgi-bin/ {
#try_files $uri =404 ;
gzip off;
root /path/to/wordpress/site/;
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
#kill cache
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";

include /usr/local/etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/wordpress/site//$fastcgi_script_name;
}
}

--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
If we search for what we want, that is all we will find.-unknown Beware https://mindspring.com
0 new messages