ok, i changed it a little bit. But it doesn't wok.
the upload functioned. It saves the pictures on the correct path. http://www.xxx.ch/common/wiki/images/d/d1/Heckert_GNU_white.png
New is this message: When i want to see the picture Heckert_GNU_white.png from the mainwikidb into the shopdatabase, http://www.xxx.ch/shop/Bild:Heckert_GNU_white.png, i see the error:
Es gab einen Syntaxfehler in der Datenbankabfrage. Die letzte Datenbankabfrage lautete: (SQL query hidden) aus der Funktion "Image::loadFromDB". MySQL meldete den Fehler "1044: Access denied for user 'xxx_shop'@'localhost' to database 'xxx_wikixxx' (localhost)".
###################### ## To enable image ads, make sure the 'images' directory ## is writable, then uncomment this: $wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert"; ####################### ### Default skin #you can change the default skin. Use the internal symbolic # names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': $wgDefaultSkin = 'monobook'; $wgLogo = "http://www.xxx.ch/common/wiki/logo.png"; ### Images
$wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert";
###################################### # 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. # $wgSharedUploadPath = "http://www.xxx.ch/common/wiki/images"; # Path on the file system where shared uploads can be found $wgSharedUploadDirectory = '/home/xxx/public_html/common/wiki/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. $wgSharedUploadDBname = 'xxx_wikixxx'; $wgSharedUploadDBprefix = ''; #$wgSharedUploadDBname = 'xxx_wikishop';
$wgUseSharedUploads = true; $wgCacheSharedUploads = true; $wgHashedSharedUploadDirectory = true; $wgFetchCommonsDescriptions = true;