How to set my MediaWiki in debug mode?

By adding the following line to your LocalSettings.php file, you will be able to log everything that WikiMedia does:

$wgDebugLogFile = '/path-to-your-application/logfile';

You can edit the LocalSettings.php file via FTP, or using File Manager in cPanel.

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

For example, if your MediaWiki is installed in the public_html directory the line in the LocalSettings.php should look like this:

$wgDebugLogFile = '/home/user/public_html/logfile';

Where user is your cPanel username.

You need help with an application? SiteGround is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!