Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author nintechnet

    (@nintechnet)

    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?

    Thread Starter jessy161616

    (@jessy161616)

    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.

    Plugin Author nintechnet

    (@nintechnet)

    If you disable APC, does the firewall work again ?
    Are you using php.ini or .user.ini ?

    Thread Starter jessy161616

    (@jessy161616)

    No idea… v-server and can’t change it by myself. Only Options in managed backend.

    Plugin Author nintechnet

    (@nintechnet)

    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.

    Thread Starter jessy161616

    (@jessy161616)

    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 : APACHE2HANDLER

    NinjaFirewall 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 found

    But 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.

    Plugin Author nintechnet

    (@nintechnet)

    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 NinjaFirewall

    Thread Starter jessy161616

    (@jessy161616)

    Oh 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.

    Plugin Author nintechnet

    (@nintechnet)

    Yes, it is likely the problem: you can only use one auto_prepend_file directive.

    Thread Starter jessy161616

    (@jessy161616)

    Okay thanks for help. Love your Support and Plugin… mhhh but now i can’t use it anymore. But i recommend it 😉

    Plugin Author nintechnet

    (@nintechnet)

    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!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Don't work with APC?’ is closed to new replies.