Hmm, I feel like I would need to enter more information to LocalSettings.phpfor this to work.
As I understand it, Wikimedia Commons is a MediaWiki installation that *could* have text information but instead was dedicated to media files. And the other languages, english, german, etc.. will "look up" Wikimedia Commons when an Image: request does not show any local file. Right? So I'm assuming the configuration given by Brion Vibber
$wgSharedUploadPath = 'http://upload.wikimedia.org/wikipedia/commons'; $wgSharedUploadDirectory = '/mnt/upload3/wikipedia/commons'; $wgHashedSharedUploadDirectory = true; $wgSharedUploadDBname = 'commonswiki';
is a LocalSettings.php insert for every single language wikipedia installation, except for Commons itself, right?
If this is the case, why is given language MediaWiki X (let's say the english installation) not provided with the MySQL user and password for the UploadDBname "commonswiki"? Shouldn't there be entries for $wgSharedUploadDBuser and $wgeSharedUploadDBpassword ?
For instance, our MediaWiki installs at mpkb.net are structured as follows:
MySQL english wiki (/en) DB mpkbnet_wiki, prefix en_ (en_archive, en_brokenlinks, etc..) spanish wiki (/es) DB mpkbnet_wiki, prefix es_ (es_archive, es_brokenlinks) user for mpkbnet_wiki = mpkbnet_mpkbnet
Then I try to set up the spanish wiki as subordinated to the english wiki, and so all images in spanish will be coming from the ones already uploaded at the english one. So I tried to set up the english one as a Commons.
I inserted the following at the spanish wiki LocalSettings.php
$wgSharedUploadPath = 'http://mpkb.net/wikien/images'; $wgSharedUploadDirectory = '/home/mpkbnet/public_html/wikien/images'; $wgHashedSharedUploadDirectory = true; $wgSharedUploadDBname = 'mpkbnet_wiki';
( /wikien is the real directory and /en is a rewrite mask)
and obviously it doesn't work, but.. how can this be done? Should I separate the english and spanish wiki into different databases?
english wiki DB mpkbnet_wikien, prefix wp_ spanish wiki DB mpkbnet_wikies, prefix wp_
like this?
But still, I can't see how one wiki would be able to access DB information for the other "commons" wiki.
Help.
Yongho
On 11/29/05, Brion Vibber brion@pobox.com wrote:
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)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l