![]() ![]() Some people use Apache’s mod_disk_cache to cache Mediawiki pages, but I prefer Mediawiki’s own caching system because it is more standard and does not require patching Mediawiki, even if it might not get as much benefit as a real proxy or mod_disk_cache. So Mediawiki can deal with more than 2,5 times as much requests now. Time per request: 46.248 (mean, across all concurrent requests) Percentage of the requests served within a certain time (ms)Īnd here a benchmark after implementing the changes:Īb -kt 30 This is ApacheBench, Version 2.3 Given that your web server is set up to support https in general, insert or update the following line in your LocalSettings.php configuration file of MediaWiki: wgForceHTTPS true This redirects all queries using http to https and is an alternative to a redirect rule in the web-server configuration. Time per request: 117.978 (mean, across all concurrent requests) Licensed to The Apache Software Foundation, $ ab -kt 30 This is ApacheBench, Version 2.3 Ĭopyright 1996 Adam Twiss, Zeus Technology Ltd, Change the required permission for LocalSetting.php Change the selinux policy for. Here is a benchmark before implementing the above configuration (with CACHE_NONE, but APC still installed): Move the downloaded LocalSettings.php file into mediawiki root directory. I have APC installed and configured it in Mediawiki’s LocalSettings.php: Make sure you have installed some PHP accelerator for caching.Enable file caching in Mediawiki’s LocalSettings.php:.Iif /tmp is on a tmpfs, you might add creation of this directory with the right permissions to /etc/rc.local, so that it still exists after a reboot. By preference store it on a tmpfs (at least if you are sure it will be big enough to store the cache), and configure it in LocalSettings.php: Create a directory where Mediawiki can store the localisation cache (make sure it is writable by your web server).SSH into the wiki server Go to the MediaWiki root directory: cd /var/www/html/ (you might need to update this path) Edit LocalSettings. Mediawiki 1.16 introduced a new localisation caching system which is supposed to improve performance, so you definitely want this to get the best performance. Option 1: Edit LocalSettings via SSH If you have SSH access to the wiki server, and are able to use the command line interface, then SSH is a good option. Next it includes some commonly used files. Make sure you run the latest Mediawiki version. First it changes some configuration settingssuch as paths variables that aren't customized in LocalSettings.php so that they don't need to be modified if wgScriptPathis changed or it updates new configuration settings from the backward compatible ones.Now that I am on the subject of improving performance, I configured some performance improvements for a Mediawiki installation here: ![]()
0 Comments
Leave a Reply. |