How do you explain the functional relationship between LocalSettings.php and DefaultSettings.php and why the latter should never be edited?
Hi @AeroJex
The relationship is a hierarchy of overrides. DefaultSettings.php is the software’s “factory reset” state, containing every global variable needed to run MediaWiki. LocalSettings.php is your personal configuration layer that executes after the defaults. By defining a variable in LocalSettings.php, you override the default value without deleting it.
Never edit DefaultSettings.php because it is a core system file. During a MediaWiki update, this file is overwritten, meaning any custom changes will be permanently lost. Keeping your edits in LocalSettings.php ensures your configurations survive updates and maintains a clean “source of truth” for troubleshooting.
Thanks a lot @Shaunak sir