WordPress.org

Ready to get started?Download WordPress

Forums

NinjaFirewall (WP edition)
[resolved] WP version does not work. Paid version works fine. (4 posts)

  1. cp_user
    Member
    Posted 1 year ago #

    Tried multiple times to get the WP version installed, but was never able to get the firewall admin page up. The install process just kept on creating new htaccess and ini files. However, the paid version works fine and the install was very well explained. They say it is specially created for shared hosting, so since I am using VPS hosting, makes me wonder if this is the right solution for me.

    Anyhow, just a little annoyed that I could not get the WP version up and running and had to buy the paid version just to test it. Still searching for a WP firewall. Maybe the creator could chime inn and let us know how this firewall works in a VPS/Dedicated server environment.

    Cheers RK.

    http://wordpress.org/extend/plugins/ninjafirewall/

  2. nintechnet
    Member
    Plugin Author

    Posted 1 year ago #

    It does not matter whether you are using a VPS or a dedicated server. Hardware does not affect the installation process.
    "Designed for shared hosting accounts" simply means that anyone can install, use and set it up; that it does not require root privileges.

    Regarding your problem, you would need to give more info about your HTTP server and PHP configuration/version.
    There could be several reasons why it fails to install, the 2 most common ones are:
    #1) PHP configuration problem: use of the wrong PHP INI file (php.ini, php5.ini or .user.ini) or PHP user_ini.cache_ttl value (requires a few minutes before a modified PHP INI file is taken into consideration by your PHP version) etc.
    #2) A WordPress plugin problem: it seems that, according to this thread, some plugins may interfere with the installation process.

    Because you mentioned that you successfully installed the generic version of NinjaFirewall, I will assume that #1) is not the problem. It could then be #2). I would suggest that you:
    - upload NinjaFirewall to the /wp-content/plugins/ directory.
    - deactivate ALL your plugins.
    - activate NinjaFirewall
    - click on NinjaFirewall 'setting' links and go through the whole installation process.
    - reactivate all your plugins.

    If that works, try to post here your plugins list so that we could try to find out which one is the problem.

  3. cp_user
    Member
    Posted 1 year ago #

    Hi,

    Thank you for your reply.

    I installed the WP edition on a clean WP 3.5.2 with no plugins and still had no luck.

    I am using Litespeed Web Server so that might be the problem. Anyhow, I am using the paid version with no issues at all.

    Tried installing the WP edition multiple times but I finally gave up.

    Forgot to mention that I am using Litespeed in my initial post - sorry.

    Web Server: Litespeed Enterprise 4.2.3
    PHP version 5.4.16

    Cheers RK

  4. nintechnet
    Member
    Plugin Author

    Posted 1 year ago #

    I think I understand the problem:
    LiteSpeed can run user configuration files variables and instructions (.htaccess and PHP INI) using different ways. It seems your config is running just like the Apache mod_php does. That means, PHP instructions should not be saved to a PHP INI file, but to an .htaccess file instead and should use Apache php_value syntax.

    - upload NinjaFirewall to the /wp-content/plugins/ directory.
    - activate it. DO NOT run its installer, you will not need it.
    - open WordPress main .htaccess file and simply add on top of it:

    php_value auto_prepend_file /FULL_PATH_TO_YOUR_WORDPRESS_DIR/wp-content/plugins/ninjafirewall/lib/firewall.php

    Replace FULL_PATH_TO_YOUR_WORDPRESS_DIR with the correct path.

    - go back to WP admin console and just click on the "NinjaFirewall" menu on the left frame. Hopefully, it should be working.

    The installer of the generic version of NinjaFirewall handles this LiteSpeed issue, but not the WP edition one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.