Manual:$wgTidyBin

Details
Should be set to the path of the tidy binary if $wgUseTidy is set. (If you want to use a relative directory, the working directory is the directory of Parser.php, i.e. /includes/parser/.)