Last modified: December 31 1969 16:00:00
$wgEnableUploads = true; ... $wgFileExtensions = array('png', 'jpg', 'jpeg','gif'); ...
$wgVerifyMimeType = false; $wgMimeDetectorCommand = "file -bi";(N.B. I think that the 2nd line probably does the trick by itself, but the first line was the first, partial solution I found, and seems to do no harm.)
$wgDBadminuser = "root"; $wgDBadminpassword = "yourmysqlrootpassword";
php rebuildImages.php(If your system has no php command line binary, try finding and installing a "php-cli" package.)