Don't work with APC?
-
Hello,
possible that the plugin don’t work with APC on the Server? I have the APC Cache activate but now the Firewall dosn’t work anymore.
-
Hi,
It works with APC and any other PHP opcode cache (Zend OPcache etc).
If you go to the firewall “Overview” page, do you see any warning/error message?
No way… i delete and install it again:
“NinjaFirewall fatal error : Unable to communicate with the firewall. Please check your PHP INI settings. Review your installation, your site is not protected.”
On Overview menu from firewall i see no warning or error, only the error above on the wordpress dashboard.
BUT i nothing change… only activate APC on my Server, nothing more.
If you disable APC, does the firewall work again ?
Are you using php.ini or .user.ini ?No idea… v-server and can’t change it by myself. Only Options in managed backend.
We run NinjaFirewall with APC and there is no problem. It seems you may have a very specific PHP configuration.
Can you ask your host about that problem?Also you can try to download this script a paste here the results:
1. Rename this file to “ninjacheck.php”.
2. Upload it into your WordPress root folder.
3. Goto http://YOUR WEBSITE/ninjacheck.php
4. Delete it afterwards.The File say Ninja Firewall ist loaded… i don’t post it here complete, because security and filepaths of the server…
HTTP server : Apache
PHP version : 5.4.38-1~he.0
PHP SAPI : APACHE2HANDLERNinjaFirewall detection : NinjaFirewall WP Edition is loaded
Loaded INI file : /etc/php5.4/php.ini
user_ini.filename : .user.ini
user_ini.cache_ttl : 300 seconds
User PHP INI : none foundBut i have the same error on Dashboard again:
NinjaFirewall fatal error: Unable to communicate with the firewall. Please check your PHP INI settings. Review your installation, your site is not protected.It is loaded in the main WP folder only, but it is not loaded in subfolders, that is why you get this error from the admin dashboard (it is in the /wp-admin/ subfolder).
This can happen sometimes with PHP INI files, but you are using Apache with PHP as a module (APACHE2HANDLER), which means that NinjaFirewall instructions must be in your .htaccess, not PHP INI.
Can you check the .htaccess and ensure you have something similar to this:
# BEGIN NinjaFirewall php_value auto_prepend_file /xxxxx/full/path/to/firewall.php # END NinjaFirewallOh i think i know what is it…
i use the Cache-Plugin “Cachify” with APC-Option… this force me to insert this in the .htaccess:
# BEGINN CACHIFY
<Files index.php>
php_value auto_prepend_file /path/to/wordpress/wp-content/plugins/cachify/apc/proxy.php
</Files>I think i only can use one “php_value auto_prepend_file” or something like this… other thing dosn’t change. Only Change Caching to APC and this lines to .htaccess.
Yes, it is likely the problem: you can only use one auto_prepend_file directive.
Okay thanks for help. Love your Support and Plugin… mhhh but now i can’t use it anymore. But i recommend it 😉
Maybe you can use it with the .htninja file.
For instance:
1. keep only NinjaFirewall auto_prepend_file in your .htaccess
2. add this code to the .htninja:<?php /* +=============================================================+ | NinjaFirewall optional configuration file | | | | See: http://ninjafirewall.com/wordpress/htninja/ | +=============================================================+ */ require('/path/to/wordpress/wp-content/plugins/cachify/apc/proxy.php');That would load your script.
But… I did not test it, so I really cannot guarantee it will work!
The topic ‘Don't work with APC?’ is closed to new replies.