Permalink
Browse files

readme for wmf mode

  • Loading branch information...
Ian Pye
Ian Pye committed Dec 20, 2009
1 parent dfbeef5 commit 74160eabdee455884280cb167812fb5aec3e8ad4
Showing with 17 additions and 1 deletion.
  1. +16 −0 README-WMF
  2. +1 −1 remote/admin/wikitrustd
View
@@ -0,0 +1,16 @@
+
+Here is the config used to setup a server in WMF mode.
+Note that in this example, we target the Italian Wikipedia.
+
+$wgUseTidy = true; // Enable Tidy
+$wgUseAjax = true; // Enable Ajax (needed for voting)
+#$wgWikiTrustGadget = "gadget-WikiTrust";
+$wgWikiTrustLog = "/tmp/{$wgDBname}-trust.log";
+$wgWikiTrustDebugLog = "/tmp/{$wgDBname}-trust-debug.log";
+$wgWikiTrustVersion = "wmf";
+$wgWikiTrustContentServerURL = "http://it.collaborativetrust.com/WikiTrust/RemoteAPI";
+$wgWikiTrustApiURL = "http://it.wikipedia.org/w/api.php";
+$wgWikiTrustShowMouseOrigin = true;
+
+require( $IP . "/extensions/WikiTrust/WikiTrust.php" );
+$wgWikiTrustDebugVerbosity = WIKITRUST_DEBUG;
View
@@ -24,6 +24,6 @@ for wiki in `ls /etc/wikitrust/wikis_enabled.d`; do
touch $ERROR_FILE
chmod a+w $LOG_FILE
chmod a+w $ERROR_FILE
- $USER "$DISPATCHER -db_user $DB_USER -db_name $DB_NAME -db_pass $DB_PASS -db_host $DB_HOST -log_file $LOG_FILE $OTHER_OPTIONS" > $LOG_FILE 2> $ERROR_FILE &
+ $USER "$DISPATCHER -db_user $DB_USER -db_name $DB_NAME -db_pass $DB_PASS -db_host $DB_HOST -log_file $LOG_FILE $OTHER_OPTIONS" >> $LOG_FILE 2>> $ERROR_FILE &
done

0 comments on commit 74160ea

Please sign in to comment.