Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Other Applications / MediaWiki / How to set my MediaWiki in debug mode?

How to set my MediaWiki in debug mode?

Last update: Aug 07, 2025

Add the following line in your LocalSettings.php file to enable the debug mode:

$wgDebugLogFile = ‘/path-to-your-application/logfile’;

The path above should be the exact full path to the wiki directory under your account.

Share this article