Manual:$wgTidyInternal

Details
Normally you shouldn't need to override the setting except for debugging.

Tidy2.0 is bundled with PHP5 by default (MediaWiki requires PHP5), but is not included in the ubuntu build of PHP5. To install it on Ubuntu 10.04 / PHP 5.2.x:

Add extension=tidy.so to php.ini; set $wgUseTidy=true in LocalSettings.php; finally, restart apache.