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

    (@nintechnet)

    Hi,

    Is this your own server or a shared hosting account?

    Did the installer add its directives to the .htaccess as well?
    When a Litespeed server is detected, it adds them both to the php.ini and the .htaccess file because some Litespeed installations use Apache-style configuration directives (php_value) rather than PHP INI files.

    Thread Starter stathis_k91

    (@stathis_k91)

    Hi,

    it is a shared hosting,
    the .htaccess file has the default wordpress,
    PHP Version 5.4.29
    LiteSpeed V6.7
    Loaded Configuration File /usr/local/lib/php.ini

    what do you suggest because my site always been in a brute force attack,

    Thanks,
    Stathis

    ‘what do you suggest because my site always been in a brute force attack,’

    Just want to throw it out there – If your code (WP, plugins, etc) is always up-to-date, there’s also a slight possibility that the shared server might have been compromised. Try asking your hosting provider to move your site to another server πŸ™‚

    Thread Starter stathis_k91

    (@stathis_k91)

    Hi churva,

    that is the role of a security plugin, to protect

    Plugin Author nintechnet

    (@nintechnet)

    I am a bit confused about the content of your .htaccess file: does it have the following NinjaFirewall directives?

    # BEGIN NinjaFirewall
    php_value auto_prepend_file /full/path/to/.../lib/firewall.php
    # END NinjaFirewall

    Thread Starter stathis_k91

    (@stathis_k91)

    Hi Author,

    no, did i must insert manualy?

    Thanks for the fast reply,

    Plugin Author nintechnet

    (@nintechnet)

    Yes, try to add the above code to your .htaccess.
    Replace /full/path/to/…/lib/firewall.php with the full path to the firewall.php script (you can see it in your php.ini).

    Thread Starter stathis_k91

    (@stathis_k91)

    I can’t find the full path in php.ini,
    i find the path by ftp but when added in .htaccess return blank page,

    /public_html/mysite/wp-content/plugins/ninjafirewall/ninjafirewall.php

    how to find the right path?

    Thanks

    Thread Starter stathis_k91

    (@stathis_k91)

    same with this path

    /public_html/mysite/wp-content/plugins/ninjafirewall/lib/firewall.php

    Plugin Author nintechnet

    (@nintechnet)

    Create a ‘path.php’ PHP script with the following code:

    <?php
    if (file_exists(__DIR__ . '/wp-content/plugins/ninjafirewall/lib/firewall.php') ) {
       echo __DIR__ . '/wp-content/plugins/ninjafirewall/lib/firewall.php';
    } else {
       echo 'Error: cannot find /wp-content/ folder.';
    }
    ?>

    Upload it to your /public_html/mysite/ directory, and access it with your browser (your-site.com/path.php). It will show you the full path.

    Thread Starter stathis_k91

    (@stathis_k91)

    I find the path with the script,

    it working properly,

    Thanks for your support,
    Stathis

    my install has the code in the php.ini file but it still fails to initialize.
    i checked the php.ini and the code is there.
    hosting company confirms using php.ini

    Ideas?

    Thread Starter stathis_k91

    (@stathis_k91)

    my issue resolved when added the code in .htaccess

    # BEGIN NinjaFirewall
    php_value auto_prepend_file /full/path/to/…/lib/firewall.php
    # END NinjaFirewall

    stathis: thank you.

    clearly that code doesn’t get into the .htaccess for some reason.

    does it matter WHERE it goes in the .htaccess file?

Viewing 15 replies - 1 through 15 (of 26 total)

The topic ‘failed connect php ini’ is closed to new replies.