Hi,
Can you use this troubleshooter script:
http://nintechnet.com/share/wp-check.txt
1. Rename this file to “wp-check.php”.
2. Upload it into your WordPress root folder.
3. Go to http://YOUR WEBSITE/wp-check.php
4. Delete it afterwards.
I prove this and the problems disappear!
But the plugin doesn’t work.
I have php.ini in the root folder, but the plugin say that:
NinjaFirewall fatal error: Unable to communicate with the firewall. Please check your PHP INI settings. Review your installation, your site is not protected.
Did you run the “”wp-check.php” script? Can you paste here the results?
Maybe you should try to rename “php.ini” to “.user.ini” ?
Maybe can i send you private the results?
I try to rename php.ini to .user.ini, and the same problem. All works, but NinjaFirewall no.
Thanks
You can paste the results here. Just replace your domain name and directory paths with “xxxxx” to anonymise them.
HTTP server : Apache
PHP version : 7.0.4
PHP SAPI : CGI-FCGI
auto_prepend_file : /XXXXXXX/wp-content/nfwlog/ninjafirewall.php
NinjaFirewall detection : NinjaFirewall WP Edition is loaded
Loaded INI file : /XXXXXX/php.ini
user_ini.filename : none
user_ini.cache_ttl : 300 seconds
User PHP INI : php.ini found –
DOCUMENT_ROOT : /XXXXXX
wp-config.php : found in /XXXXXX/wp-config.php
ABSPATH : /XXXXXX/
WordPress version : 4.5.2
WP_CONTENT_DIR : /XXXXXX/wp-content
Plugins directory : /XXXXXXXX/wp-content/plugins
User Role : Administrator
It shows that the firewall is loaded in the root folder, but not in the subfolder (wp-admin). That means that your php.ini file is not recursive and that you should probably add the PHPRC directive to your .htaccess file.
See the online help Troubleshoot NinjaFirewall installation problems, 2nd paragraph (“Your PHP configuration makes the php.ini non-recursive”).
Now yes!
Thanks so much nintechnet!