Yongho Kim wrote:
I am still unable to set the commons wiki properly. Could someone paste here a working LocalSettings.php wgSharedUpload configuration? Or could I see wikipedia's configuration? That would make it a lot easier to retroengineer it and adapt to my site's setup.
First you need to set the URL prefix to where the common uploaded files will appear on the web:
$wgSharedUploadPath = 'http://upload.wikimedia.org/wikipedia/commons';
You also need a local filesystem directory, so files can be checked for existence and thumbnails generated:
$wgSharedUploadDirectory = '/mnt/upload3/wikipedia/commons';
On by default, using the subdirectories to split up the file set:
$wgHashedSharedUploadDirectory = true;
To load image data for shared images, you'll also need to specify the database name (all your wikis will need to use the same prefix, in separate databases on the same server, or I'm not sure this works):
$wgSharedUploadDBname = 'commonswiki';
I'm not sure if this made it into 1.5 or not, but you can optionally have it fetch the description page contents to show when you go to 'Image:Foo.jpg'. This might require additional configuration (appropriate interwiki table etc):
$wgFetchCommonsDescriptions = true;
Unfortunately I'm not sure any of the above is any clearer than the examples in the earlier message you quoted, but that's our settings...
-- brion vibber (brion @ pobox.com)