I just tarred up and copied over my entire site to a new server. I've dumped and recovered the database and untarred everything on the new box and everything is working fine - except most of my images are missing. Both boxes are urning unix.
I've checked the mediawiki_install_root/images directory for permissions or access problems but all seems fine. On a lot of the pages the logo is missing. I would have to say at quick glance any uploaded and linked images are gone too. The LocalSettings.php on both servers are identical.
When I relocated my wiki I nested its install root within another file system so it isn't located exactly where it was first installed. My thought was this wouldn't be the problem unless pointers to the image files locations were being stored in the database. On a lark I ran a program called rebuildImages.php --dry-run. Its output indicated there wasn't much to be done (0 of 2 rows). So I didn't run it without the --dry-run flag.
So I'm at a loss. Is there a document that explains MediaWiki's processing of image files or maybe that describes in detail how Mediawiki operates? If anybody could help me find a solution it would be greatly appreciated.
Thanks!
Tod wrote:
I just tarred up and copied over my entire site to a new server. I've dumped and recovered the database and untarred everything on the new box and everything is working fine - except most of my images are missing. Both boxes are urning unix.
I've checked the mediawiki_install_root/images directory for permissions or access problems but all seems fine. On a lot of the pages the logo is missing. I would have to say at quick glance any uploaded and linked images are gone too. The LocalSettings.php on both servers are identical.
When I relocated my wiki I nested its install root within another file system so it isn't located exactly where it was first installed. My thought was this wouldn't be the problem unless pointers to the image files locations were being stored in the database.
There aren't. Every path is at LocalSettings.php
From your description looks like the web path is different, eg. your
wiki used to be at http://server/~Tod/wiki/ and now it is at http://server/wiki/. And that the wiki is trying to include the urls from http://server/~Tod/wiki/images/... which doesn't work since they are now at http://server/wiki/ on the fictional layout I mentioned.
Look at which url is it expecting the images and fix the appropiate variable at localsettings. The value doesn't need to be a full url, but should at least be a url relative to the web root (beginning with a slash), or it may fail with articles containing / in its name
On 12/1/2009 4:27 PM, Platonides wrote:
Tod wrote:
I just tarred up and copied over my entire site to a new server. I've dumped and recovered the database and untarred everything on the new box and everything is working fine - except most of my images are missing. Both boxes are urning unix.
I've checked the mediawiki_install_root/images directory for permissions or access problems but all seems fine. On a lot of the pages the logo is missing. I would have to say at quick glance any uploaded and linked images are gone too. The LocalSettings.php on both servers are identical.
When I relocated my wiki I nested its install root within another file system so it isn't located exactly where it was first installed. My thought was this wouldn't be the problem unless pointers to the image files locations were being stored in the database.
There aren't. Every path is at LocalSettings.php
From your description looks like the web path is different, eg. your
wiki used to be at http://server/~Tod/wiki/ and now it is at http://server/wiki/. And that the wiki is trying to include the urls from http://server/~Tod/wiki/images/... which doesn't work since they are now at http://server/wiki/ on the fictional layout I mentioned.
Look at which url is it expecting the images and fix the appropiate variable at localsettings. The value doesn't need to be a full url, but should at least be a url relative to the web root (beginning with a slash), or it may fail with articles containing / in its name
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Plat,
Thanks for the suggestion. Turns out I needed to do a chgrp/chmod on the images directory - duh. I swear that was the first thing I checked :|
Thanks again!
wikitech-l@lists.wikimedia.org