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.
Yongho
On 5/11/05, Yongho Kim yokima@gmail.com wrote:
Thank you Brion! will check into DefaultSettings next time.
Can :en/images be simply set up as a commons replacement? I set up the following in a spanish localization (http://mpkb.net/es/Portada ), which doesn't seem to work:
$wgSharedUploadPath = "http://mpkb.net/wikien/images"; $wgSharedUploadDirectory = "/public_html/wikien/images";
$wgHashedSharedUploadDirectory = true; $wgSharedUploadDBname = "commons"; $wgSharedLatin1=false;
(wikien is the english copy)
I left wgHashedSharedUploadDirectory wgSharedUploadDBname as they were because I didn't know what they stood for.
In particular what is the "file system where shared uploads can be found"? Is that supposed to equal $wgSharedUploadDirectory = "/public_html/wikien/images"; or is it some other directory? It's confusing because the comments say it's a file system but the veraible name says "DB" should I link it to the english MediaWiki db? (but the spanish mediawiki has no access right to the english db)
yongho
On 5/11/05, Brion Vibber brion@pobox.com wrote:
Yongho Kim wrote:
How does commons.wikipedia work? Can this be imitated in other people's own installation of MediaWiki? Is there a technical document under meta explaining this, I can't find any.
All configurable settings are in DefaultSettings.php; please always refer to this file first.
# If you operate multiple wikis, you can define a shared upload # path here. Uploads to this wiki will NOT be put there - they # will be put into $wgUploadDirectory. # # If $wgUseSharedUploads is set, the wiki will look in the # shared repository if no file of the given name is found in # the local repository (for [[Image:..]], [[Media:..]] links). # Thumbnails will also be looked for and generated in this # directory. # $wgUseSharedUploads = false; # Full path on the web server where shared uploads can be found $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; # Path on the file system where shared uploads can be found $wgSharedUploadDirectory = "/var/www/wiki3/images"; # Set this to false especially if you have a set of files that need to
be
# accessible by all wikis, and you do not want to use the hash
(path/a/aa/)
# directory layout. $wgHashedSharedUploadDirectory = true;
# Path on the file system where shared uploads can be found $wgSharedUploadDBname = "commons";
# set true if the repository uses latin1 filenames $wgSharedLatin1=false;
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l