Title: wp-config.php
Last modified: March 17, 2020

---

# wp-config.php

 *  [OMahony](https://wordpress.org/support/users/mindedasia/)
 * (@mindedasia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/wp-config-php-5/)
 * Background: I am a very simiple-level WP user who assembled a 4 page website 
   that worked, then a week ago stopped working. I spend 3 hours learning the cause
   from a really helpful video and now i have returned it to being able to update
   plugins – to un-crash it. but it left me with a question:
 * Does anybody know why extra lines in wp-config.php would be added or be modified
   wihtout admin knowledge ?
    The two lines (at the end of the file)
 * define(‘DISALLOW_FILE_EDIT’, true);
    define(‘DISALLOW_FILE_MODS’, true);
 * had to be changed back to
 * define(‘DISALLOW_FILE_EDIT’, false);
    define(‘DISALLOW_FILE_MODS’, false);
 * I´m just really curious to know why and how this happened? I am the only user
   on this site. Does WP get updated without site-admins being informed?
    Thnks 
   for any answers.

Viewing 1 replies (of 1 total)

 *  [Carike](https://wordpress.org/support/users/carike/)
 * (@carike)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/wp-config-php-5/#post-12551223)
 * That is probably from a security / firewall plugin.
    They don’t do it by default
   though, so someone probably ticked the options without understanding what the
   implications would be.
 * Setting DISALLOW_FILE_EDIT to TRUE is actually a very good idea, since that disables
   the plugin and theme editors. Since editing plugin and theme files can cause 
   fatal website errors and since experienced developers are comfortable enough 
   with the other methods of editing their website’s code, setting it to TRUE is
   very prudent.
    DISALLOW_FILE_MODS is something that needs to be done with more
   caution, as it will break the update mechanisms.

Viewing 1 replies (of 1 total)

The topic ‘wp-config.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Carike](https://wordpress.org/support/users/carike/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/wp-config-php-5/#post-12551223)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
