• Resolved catuyen

    (@catuyen)


    Hi

    To improve the security of my website, I have moved wp-config.php to another page, outside of public_html. Then, NinjaFireall displays an error “Cannot retrieve WordPress database credentials”.

    What should I do? Can I still keep NinjaFirewall working while moving the wp-config.php file?

    Thank you for your support!
    U

    • This topic was modified 1 year ago by catuyen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    You can use the “.htninja” configuration file to tell the firewall where is located your wp-config.php:

    The code would be:

    <?php
    // To tell NinjaFirewall where you moved your WP config file,
    // use the '$wp_config' variable :
    $wp_config = '/full/path/to/wp-config.php';
    
    
    
    
    
    
    Thread Starter catuyen

    (@catuyen)

    Amazing!

    Thanks again for your support

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot retrieve WordPress database credentials’ is closed to new replies.