tvarga77
Forum Replies Created
-
Yes. Thank you for your help and troubleshooting. Altough, this plugin is very good !
root@vps:~# sudo -u www-data cat /etc/nginx/nginx.conf | head -n 10
user www-data;
worker_processes 4;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;ls -la /etc/nginx/nginx.conf
-rw-r–r– 1 root root 2407 Apr 6 16:08 /etc/nginx/nginx.confThough, it must be because of php open_basedir. I commented it out for few mins , after that NPP could see nginx.conf….
Br,
Tamás
ls -al /etc/nginx/nginx.conf
-r–r–r– 1 root root 2407 Apr 6 16:08 /etc/nginx/nginx.confThe Status tab only shows this:
ERROR CONF: Unable to read or locate the nginx.conf configuration file!
The nginx.conf file was not found in the default paths. This may indicate a custom Nginx setup with a non-standard configuration file location or permission issue. If you still encounter this error, please get help from the plugin support forum!
But configured and runs as www-data…
Br,
Tamás
This does not run in a container. Runs in a “normal” wordpress installation, there is no docker container. So this is why i do not understand.
nginx.conf detected (strict): No
Signals suggest Nginx: Yes
Assume-Nginx Mode: Enabled
Signals checked:
- Server signature (SERVER_SOFTWARE)
- HTTP headers (server / PHP hints)
- nginx.conf found at standard paths
Are you in ‘Assume Nginx’ mode or not? – yes, it is in Assume Nginx mode….
By itself, it did not detect my nginx.conf, which is in the default path….
/dev/null to php open_basedir – php log complained about it….php -r “echo function_exists(‘proc_open’) ? ‘enabled’ : ‘disabled’;”
enabledThis is okay. It seems to me that the php open_basedir restrict something. Now the preload works, because i copied the content of my nginx.conf to dummy-nginx.conf. This is just a workaround i tried.
But in order to get it working, i had to – also just as a try – add /dev/null to php open_basedir….
Now i’m here:
SUCCESS ADMIN: Nginx cache preloading has started in the background. Please check the –Status– tab for progress updates.Értesítés elvetése.
ERROR CONF: Unable to read or locate the nginx.conf configuration file!
The nginx.conf file was not found in the default paths. This may indicate a custom Nginx setup with a non-standard configuration file location or permission issue. If you still encounter this error, please get help from the plugin support forum!
I think, the root cause is somewhere here….
Br,
Tamás
- This reply was modified 2 months ago by tvarga77.
Hello Hasan,
I have safexec installed and the plugin version is v2.1.5, yes. The wget command you suggested, i ran (with my changed http://www.site.com parameter). That saved lot of .tmp files, for me, it seems to be working.
But….
the nginx.conf is definitely on the default path….so i do not understand….
Br,
Tamás
Hello Hasan,
I have the same issue, in a wordpress + elementor installation. Everything works, i can purge the cache, but when i try to do a preload (first snapshot), it gives the same error message:
“ERROR COMMAND: Preloading failed for https://site.com. Please check Exclude Endpoints and Exclude File Extensions settings syntax.”
I have this configuration entry in nginx conf:
fastcgi_cache_key “$scheme$request_method$host$request_uri”;
I can see the cached entries under advanced tab. But the preload does not work. I could not find more specific, as the log does not show anything else, only the fact with this error above…
Could you please help me in this ?
Best regards,
Tamás