Having moved a wiki from one server to another using mysqldump (thanks for all the previous help, everyone!), I then moved the images directory over as well. Unfortunately, none of the images are displaying. This was a move from a 1.6.3 wiki to a 1.6.9 one, so I diffed the old LocalConfig.php file against the new one, and the only relevant change we'd forgotten to include was '$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'zip', 'mov', 'pdf' );', which I then put in to the new config file. Still didn't work, unfortunately.
So I then tried creating a blank images directory, and using importImages.php to load all of the images. However, this gives me mostly 'no such file or directory' errors, presumably because I don't have the images/0, images/0/00, etc subdirectories in the images directory. I also get a few errors noting that a give file is already in the wiki.
Any suggestions as to the best course from here? Any thoughts on what might have caused the images to fail to display on the initial attempt?
Thanks, Ken
Figured this one out, posting in case someone else finds it of use.
Basically, it was a stupid little mistake of mine. I zipped the images to transfer them, and the zip protocol doesn't preserve permissions. Once I realized this, it was a simple matter to grant the appropriate permissions on the directory structure and image files. I've probably granted permissions that are too liberal, but it appears to me that there's little chance a user could ever manipulate the files in any direct manner, assuming our other security is decent.
Cheers, Ken
Ken McDonald wrote:
Having moved a wiki from one server to another using mysqldump (thanks for all the previous help, everyone!), I then moved the images directory over as well. Unfortunately, none of the images are displaying. This was a move from a 1.6.3 wiki to a 1.6.9 one, so I diffed the old LocalConfig.php file against the new one, and the only relevant change we'd forgotten to include was '$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'zip', 'mov', 'pdf' );', which I then put in to the new config file. Still didn't work, unfortunately.
So I then tried creating a blank images directory, and using importImages.php to load all of the images. However, this gives me mostly 'no such file or directory' errors, presumably because I don't have the images/0, images/0/00, etc subdirectories in the images directory. I also get a few errors noting that a give file is already in the wiki.
Any suggestions as to the best course from here? Any thoughts on what might have caused the images to fail to display on the initial attempt?
Thanks, Ken
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org