Hi,
we would like to install different - how to say - "regions" in a MediaWiki for different workgroups of our institute. The content that should be found is quite different for the different workgroups so a certain split makes definitely sense. What is the best strategy to implement this. I have read about using different databases or different prefixes inside one database. What are advantages or drawbacks of this approach? Where can I find a detailed instruction to set up one or the other or even a further alternative method.
One special thing is that we have an existing wikidb of one working group that has to be migrated to this common wiki (common set of wikis).
Kind regards
Andreas.
Where can I find a detailed instruction to set up one or the other or even a further alternative method.
There's some info on wiki farms on MediaWiki.org: http://www.mediawiki.org/wiki/Manual:Wiki_family Maybe that helps...
-- F.
On Thu, 10 May 2007, F.D. wrote:
There's some info on wiki farms on MediaWiki.org: http://www.mediawiki.org/wiki/Manual:Wiki_family Maybe that helps...
The hint sounds good and I tried
<?php
$callingurl = strtolower($_SERVER['REQUEST_URI']); // identify the asking url
if ( strpos( $callingurl, 'wikiFG31') ) { require_once( 'LocalSettings_wikiFG31.php' ); } if ( strpos( $callingurl, 'wikiWR') ) { require_once( 'LocalSettings_WR.php' ); } ?>
as new LocalSettings.php for my two instances (named FG31 and WR). I also added
Alias /wikiFG31 /var/lib/mediawiki1.9 Alias /wikiWR /var/lib/mediawiki1.9
to my apache2 config (I'm using the Debian packaged version of MediaWiki 1.9.3).
If I call either
http://localhost/wikiWR/ or http://localhost/wikiFG31/
I get
Error, Setup.php must be included from the file scope, after DefaultSettings.php
as response but I have no idea what I might have missed. Any idea?
Kind regards
Andreas.
Hi,
any hint how I can try to debug the problem myself if there seems to be no answer to the question below. I think on thinks like print "I'm reading source file %s in line %d" printed to /var/log/my_mediawiki_debug.log.
Unfortunately I never used PHP and thus I need some kick start to track down the problem.
Kind regards
Andreas.
On Tue, 15 May 2007, Andreas Tille wrote:
On Thu, 10 May 2007, F.D. wrote:
There's some info on wiki farms on MediaWiki.org: http://www.mediawiki.org/wiki/Manual:Wiki_family Maybe that helps...
The hint sounds good and I tried
<?php $callingurl = strtolower($_SERVER['REQUEST_URI']); // identify the asking url if ( strpos( $callingurl, 'wikiFG31') ) { require_once( 'LocalSettings_wikiFG31.php' ); } if ( strpos( $callingurl, 'wikiWR') ) { require_once( 'LocalSettings_WR.php' ); } ?>
as new LocalSettings.php for my two instances (named FG31 and WR). I also added
Alias /wikiFG31 /var/lib/mediawiki1.9 Alias /wikiWR /var/lib/mediawiki1.9
to my apache2 config (I'm using the Debian packaged version of MediaWiki 1.9.3).
If I call either
http://localhost/wikiWR/ or http://localhost/wikiFG31/
I get
Error, Setup.php must be included from the file scope, after DefaultSettings.php
as response but I have no idea what I might have missed. Any idea?
Kind regards
Andreas.
Simplest way would be to add
$byteCnt = file_put_contents("filename","your message here")
This is a one shot thing, overwriting what was last written to the file
If you want a 'logging' function look at the php doc for fwrite
DSig David Tod Sigafoos | SANMAR Corporation PICK Guy 206-770-5585 davesigafoos@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Andreas Tille Sent: Wednesday, May 16, 2007 0:20 To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] How to debug? (Was: Several instances on one host)
Hi,
any hint how I can try to debug the problem myself if there seems to be no answer to the question below. I think on thinks like print "I'm reading source file %s in line %d" printed to /var/log/my_mediawiki_debug.log.
Unfortunately I never used PHP and thus I need some kick start to track down the problem.
Kind regards
Andreas.
On Tue, 15 May 2007, Andreas Tille wrote:
On Thu, 10 May 2007, F.D. wrote:
There's some info on wiki farms on MediaWiki.org: http://www.mediawiki.org/wiki/Manual:Wiki_family Maybe that helps...
The hint sounds good and I tried
<?php
$callingurl = strtolower($_SERVER['REQUEST_URI']); // identify
the asking url
if ( strpos( $callingurl, 'wikiFG31') ) { require_once( 'LocalSettings_wikiFG31.php' ); } if ( strpos( $callingurl, 'wikiWR') ) { require_once( 'LocalSettings_WR.php' ); } ?>
as new LocalSettings.php for my two instances (named FG31 and WR). I also added
Alias /wikiFG31 /var/lib/mediawiki1.9 Alias /wikiWR /var/lib/mediawiki1.9
to my apache2 config (I'm using the Debian packaged version of MediaWiki 1.9.3).
If I call either
http://localhost/wikiWR/ or http://localhost/wikiFG31/
I get
Error, Setup.php must be included from the file scope, after
DefaultSettings.php
as response but I have no idea what I might have missed. Any idea?
Kind regards
Andreas.
mediawiki-l@lists.wikimedia.org