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

Moritz Karbach mailinglist at karba.ch
Fri Aug 25 11:33:40 UTC 2006


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



More information about the MediaWiki-l mailing list