• Resolved vgdl1998

    (@vgdl1998)


    What should I do about this problem:

    Publicly accessible config, backup, or log file found: wp-content/debug.log

    Thanks in advance

    /Olle

Viewing 5 replies - 1 through 5 (of 5 total)
  • You should not have WP_DEBUG set to true in wp-config on a production site/server (except for very brief periods of testing to solve a problem).

    I strongly suggest you make sure WP_DEBUG is turned off in your config file.

    Thread Starter vgdl1998

    (@vgdl1998)

    Thanks for the help!

    /Olle

    Thread Starter vgdl1998

    (@vgdl1998)

    Forgot to ask how to do to turn off WP_DEBUG is turned off in your config file.

    /Olle

    Edit your wp-config.php file in the main wordpress root folder of your site.

    Look for the line:
    define(‘WP_DEBUG’, true);

    and change it to:
    define(‘WP_DEBUG’, false);

    I just wanted to add to what @bluebearmedia said that you can choose “Hide this file in .htaccess” which will add a code snippet in “.htaccess” to protect this file from being publicly accessible.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Publicly accessible config, backup, or log file found’ is closed to new replies.