

The transport layer had to resolve localhost and was doing so by negotiating between an IPv4 and an IPv6 address, which PHP and MySQL needed to resolve before allowing the page to render.

It was set to "Localhost", and this post suggested that using "Localhost" on Windows 7 onwards, and Server 2008 onwards starts getting IPv6 involved in the querying of the page. The final nail in the coffin to bring the site up to speed was modifying the $wgDBserver setting in my Mediawiki LocalSettings.php file.

The same thing goes for MySQL query caching - my Wiki site is relatively small, with minimum usage, so MySQL query caching wasn't a huge improvement. I made some minor changes to caching in PHP using Wincache, but that hardly had any affect - enable and configure it if you wish from a PHP perspective, but don't expect a major jump. Make sure your local IUSR and IIS_IUSR accounts have "Modify" permissions on the cache directory, or else the files and directories from Mediawiki caching engine will not be able to write to them. $wgFileCacheDirectory = "c:\your\path\to\cache " In short, enable the following in your Mediawiki localsettings.php file: $wgCacheDirectory = "c:\your\path\to\cache" The process is simple just download, click next-next-next and you are done Try, test and work with the application in your local environment. Each installer includes all of the software necessary to run out of the box (the stack).
#Mediawiki installation mac os
One of the biggest impacts, reducing the load from 15 seconds down to around 6 or 7 was to enable Mediawiki caching and acceleration, as detailed in this post. Bitnami native installers automate the setup of a Bitnami application stack on Windows, Mac OS and Linux. For some reason localhost was being resolved via the network.
#Mediawiki installation how to
This guide explains how to deploy MediaWiki on Ubuntu 20.04. It provides a versatile, open, and free tool for publishing collaborative content. For me the thing that made the biggest difference (from 8 seconds to 0 on IIS 7) was enabling caching and changing $wgDBserver = "127.0.0.1" (from localhost). MediaWiki is the software behind Wikipedia and many of the wiki websites used by organizations and communities around the world.
