I created an empty .user.ini file and run the installer again, but nothing happend.
Here the output of the check:
NinjaFirewall (WP edition) troubleshooter
HTTP server : Apache/2.2.15 (CentOS)
PHP version : 7.0.3
PHP SAPI : CGI-FCGI
auto_prepend_file : none
NinjaFirewall detection : NinjaFirewall is not loaded
Loaded INI file : /home/dd4kidsw/etc/php.ini
user_ini.filename : .user.ini
user_ini.cache_ttl : 300 seconds
User PHP INI : .user.ini found –
DOCUMENT_ROOT : /var/www/virtual/dd4kidsw/html
wp-config.php : found in /var/www/virtual/dd4kidsw/html/wp-config.php
ABSPATH : /var/www/virtual/dd4kidsw/html/
WordPress version : 4.4.2
WP_CONTENT_DIR : /var/www/virtual/dd4kidsw/html/wp-content
Plugins directory : /var/www/virtual/dd4kidsw/html/wp-content/plugins
User Role : Administrator
NinjaFirewall (WP edition) troubleshooter v1.2
Hi,
I think .user.ini is your best choice here. Note that the ‘SetEnv PHPRC’ directive should be used with php.ini, not .user.ini.
Do you see NinjaFirewall’s directive in your .user.ini file?
According to your paths, you should have:
1. Inside your ‘/var/www/virtual/dd4kidsw/html/.user.ini’ file:
; BEGIN NinjaFirewall
auto_prepend_file = /var/www/virtual/dd4kidsw/html/wp-content/nfwlog/ninjafirewall.php
; END NinjaFirewall
2. Inside the ‘/var/www/virtual/dd4kidsw/html/wp-content/nfwlog/ninjafirewall.php’ file:
<?php
// ===============================================================//
// NinjaFirewall's loader. //
// DO NOT alter or remove it as long as NinjaFirewall is running! //
// ===============================================================//
if ( file_exists('/var/www/virtual/dd4kidsw/html/wp-content/plugins/ninjafirewall/lib/firewall.php') ) {
@include('/var/www/virtual/dd4kidsw/html/wp-content/plugins/ninjafirewall/lib/firewall.php');
}
// EOF
Then it may take couple of minutes before PHP reload your .user.ini file.
Thank you for the fast replay!
I edited my newly created .user.ini file as recommended. The file ninjhafierwall.php was already in place and correct.
Now the firewall started working.