afjp
Forum Replies Created
-
I’ve logged out and logged back in and still nothing appears at all in the log.
> The selected log is empty.I added
define('NFW_LOG_DIR', '/nas/content/live/[redacted]/wp-content/uploads/htninja/');in addition to theHTTP_CF_CONNECTING_IPcode in .htninja.I now see files in
/wp-content/uploads/htninja/nfwlog. I took screenshots of the contents but can’t seem to upload images into the comment here, so they are in my dropbox: 1, 2, 3.I also notice now that the same structure exists in
/wp-content/nfwlog, so perhaps that step wasn’t necessary.In the live log, I see a lot of
doing_wp_cronand anadmin_ajax. I don’t recall having anything showing up in live log last I checked, so this may be progress? The Firewall Log is still empty even after visiting/?test=%00. Blocked threats is still 0.Anything else I can try?
- auto_prepends.php is not my file, it must be coming from WP Engine.
- When visiting /?test=%00, I do see the firewall message, including incident number. The firewall log at NinjaFirewall > Logs > Firewall Log is still empty. I do see an alert now at the top of the page saying that I should change permission of firewall_2025-11.php and its parent directory to 0777. When I attempt to do so using an SFTP client, I get “permission denied”. The log file is currently set to 664, and the nfwlog directory is set currently set to 755. The content of the firewall_2025-11.php file is
<?php exit; ?>, nothing else. - I have enabled logging. The only log messages I see are some php deprecation warnings for some plugins. There isn’t anything that appears to relate to the firewall.
@bruandet, here it is, thanks for checking:
NinjaFirewall (WP edition) troubleshooter
HTTP server : nginx
PHP version : 8.2.29
PHP SAPI : FPM-FCGI
auto_prepend_file : /usr/local/share/auto_prepends/auto_prepends.php
Loader's path to firewall : Cannot find the path!
wp-config.php : found in /nas/content/live/[redacted]/wp-config.php
NinjaFirewall detection : NinjaFirewall WP Edition is loaded (WordPress WAF mode)
Loaded INI file : /etc/php/8.2-zend/fpm/php.ini
user_ini.filename : none
user_ini.cache_ttl : 300 seconds
User PHP INI : .user.ini found -
DOCUMENT_ROOT : /nas/content/live/[redacted]
ABSPATH : /nas/content/live/[redacted]/
WordPress version : 6.8.3
WP_CONTENT_DIR : /nas/content/live/[redacted]/wp-content
Plugins directory : /nas/content/live/[redacted]/wp-content/plugins
User Role : Administrator
User Capabilities : manage_options: OK - unfiltered_html: OK
Log dir permissions : /nas/content/live/[redacted]/wp-content/nfwlog dir is writable
Cache dir permissions : /nas/content/live/[redacted]/wp-content/nfwlog/cache dir is writable
Configuration & Rules :
* Options: found
* Rules: found
NinjaFirewall (WP edition) troubleshooter v1.10