[Mediawiki-l] same wiki on two servers, image links

city wiki citywikimail at gmail.com
Fri Aug 25 11:38:56 UTC 2006


Moritz, did you try the rebuildimages.php script in the /maintenance/
directory?

Check it out

http://www.mediawiki.org/wiki/Help:FAQ#...are_some_of_my_images_not_showing_up_after_an_upgrade.3F

2006/8/25, Moritz Karbach <mailinglist at karba.ch>:
>
> Hi All,
>
> I wanna run the same Wiki on my ISP webserver and on a local machine. One
> reason is having a functional backup, the other is that editing may be
> more
> conveniant on the local machine than on the ISP's server.
>
> To copy the wiki from the local machine to the server, I currently dump
> the DB
> and import it on the server, and I just copy all the files to their remote
> directories.
>
> Then I adjust the LocalSettings.php to account for the different paths on
> both
> machines. In particular, I change
>
>   $IP           = "/var/www/all-inkl.com/karba.ch/wiki";
>   $wgScriptPath = "/all-inkl.com/karba.ch/wiki";
>
> to
>
>   $IP           = "/www/htdocs/*/karba.ch/wiki";
>   $wgScriptPath = "/wiki";
>
> (the asterisk's hiding my username).
>
> This works well besides of some image links being just the old ones from
> the
> local machine... There seems some magic to be going on since occasionally
> they change to the correct links...
>
> What can solve the problem? Do I have to run a certain file from the
> maintenance area before I dump the local DB to clear some cache?
>
> Cheers,
>
> - Moritz
>
> --
> m:o
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list