User:Aaron Schulz/How to make MediaWiki fast

1. Install eaccelarator (or APC)

2. Set up a crontab or shell script to run jobs (like this for example)

3. To localsettings.php, add:  /***********OPTIMIZED***********/ $wgMainCacheType = CACHE_ACCEL; $wgMessageCacheType = CACHE_ACCEL; $wgLocalMessageCache = 'C:\Server\xampp\htdocs\MW_trunk\MsgCache'; $wgParserCacheType = CACHE_ACCEL; $wgMemCachedServers = array; $wgShowIPinHeader = false; $wgUseFileCache = true; $wgFileCacheDirectory = 'C:\Server\xampp\htdocs\MW_trunk\cache'; $wgUseGzip = true; $wgEnableSidebarCache = true; $wgJobRunRate = 0; $wgDisableCounters = true; $wgMiserMode = true; $wgCompressRevisions = true; $wgRevisionCacheExpiry = 7*24*3600; $wgParserCacheExpireTime = 14*24*3600; $wgDiff = 'C:/Server/xampp/htdocs/MW/bin/GnuWin32/bin/diff.exe'; $wgDiff3 = 'C:/Server/xampp/htdocs/MW/bin/GnuWin32/bin/diff3.exe'; /***********/  4. Set $wgFileCacheDirectory and $wgLocalMessageCache
 * 1) Shared memory settings
 * 1) File cache!
 * 1) Use runners!
 * 1) NO DB HITS!
 * 1) Text cache
 * 1) Diffs

5. You can set up Memcached. If you do, set $wgParserCacheType = CACHE_MEMCACHED in localsettings.php instead.

6. Run maintenance/rebuildFileCache.php

7. Set $wgDiff and $wgDiff3 to gnu diff utility (download as needed)