MediaWiKi

How to set up file cache for MediaWiKi

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

Create a cache directory and make sure Mediawiki can write to it:

mkdir -p /disk2/wikicache

chown -R apache:apache /disk2/wikicache

chmod -R 777 /disk2/wikicache

Then enable file cache by adding the following lines to LocalSettings.php:

$wgUseFileCache = true;
$wgFileCacheDirectory = “/disk2/wikicache”;
$wgShowIPinHeader = false;
$wgUseGzip = false;

You can use tmpwatch to limit the size of cache on Linux.

Popularity: 1%

Comments

How to set a default skin for MediaWiKi

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

Add the following line to LocalSettings.php to use iv skin as default skin.

$wgDefaultSkin = ‘iv’;

Popularity: 1%

Comments

How to set up MediaWiKi custom namespaces

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

Create a custom namespace

To create a custom namespace, add a line containing your namespace(s) to LocalSettings.php, for example, to add a Patent and an Application namespaces:

$wgExtraNamespaces[100] = “Patent”;

$wgExtraNamespaces[101] = “Application”;

Ref: http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces

Popularity: 1%

Comments

« Previous Next »