MediaWiki Hosting: Run Your Own Wiki
MediaWiki is the wiki software behind Wikipedia, with page history, templates, categories, discussion pages and a large library of extensions. Communities, game and fan wikis, universities and companies self-host it for knowledge bases that many people edit, with full control over extensions and data.
The one-click install sets up Apache, PHP 8.3 and MariaDB on Ubuntu 24.04 with the PHP extensions MediaWiki requires (intl, mbstring, xml) and the recommended apcu cache and curl. It unpacks MediaWiki 1.43.11 into /var/www/html/mediawiki and creates a wikidb database with a wiki user and a generated password, which the server page shows. You finish the installation in the browser.
Which release you get
1.43 is MediaWiki's current long-term support release. Its version lifecycle page gives it security fixes until December 2027, with patch releases (1.43.x) along the way, so the one-click install is a good base for a wiki you intend to keep. Releases outside the lifecycle table get no security fixes at all, which is why staying on a supported line matters.
The tarball also bundles a set of extensions, among them VisualEditor, Cite, ParserFunctions and SyntaxHighlight. The web installer lists them with checkboxes, so you can turn on the common ones without downloading anything.
Running the installer
Every server gets a block of ports (10 by default) on the region's shared IPv4 address; the first forwards to SSH. Forward another to port 80 and open http://<shared address>:<port>/mediawiki/. The installer asks for the database (localhost, wikidb, user wiki, the generated password), the wiki's name and the first administrator. At the end it offers LocalSettings.php as a download; copy it to the server over SSH on the first port of your block:
scp -P 20000 LocalSettings.php root@203.0.113.10:/var/www/html/mediawiki/
Set $wgServer in it to the address readers use. Ports 80 and 443 on IPv4 need a dedicated IPv4 address, a paid add-on with limited availability; IPv6 is not available in US East yet.
Sizing
MediaWiki's requirements page gives 256 MB of memory as a minimum for a single-server site and warns that it will not do for a busy public wiki or one with uploads. The recommendation here is 1 GB, room for PHP, MariaDB and a cache. Disk grows with uploaded files in images/ and with page history in the database.
Install it yourself
- On Ubuntu 24.04, install the web stack and the required PHP extensions.
apt install -y apache2 mariadb-server php libapache2-mod-php php-mysql php-xml php-mbstring php-intl php-apcu php-curl - Download the latest 1.43 LTS patch release (1.43.11 at the time of writing; check releases.wikimedia.org) and unpack it.
curl -fsSL https://releases.wikimedia.org/mediawiki/1.43/mediawiki-1.43.11.tar.gz | tar -xz -C /var/www/html mv /var/www/html/mediawiki-1.43.* /var/www/html/mediawiki - Create a database and user with a password of your own.
mysql -e "CREATE DATABASE wikidb; CREATE USER 'wiki'@'localhost' IDENTIFIED BY 'a-long-random-password'; GRANT ALL ON wikidb.* TO 'wiki'@'localhost';" - Run the web installer and copy
LocalSettings.phpinto place, as above.
FAQ
How do I upgrade MediaWiki?
MediaWiki's upgrade guide: back up the database and files, unpack the new release into a new directory, copy in LocalSettings.php, images/ and your extensions and skins, then run php maintenance/run.php update. You cannot skip too far: since 1.36, MediaWiki upgrades from at most two LTS releases back.
How do I back up a wiki?
Dump the database with mysqldump wikidb, and keep LocalSettings.php and the images/ folder. Scheduled VeloxaHost snapshots (hourly to weekly, kept 1 to 30 days) or backups (keep the last 1 to 10) cover the whole server.
Can MediaWiki send email from VeloxaHost?
Yes, through an SMTP provider set in $wgSMTP. Outbound TCP port 25 is blocked by default, so use port 587 or 465.
MediaWiki or DokuWiki?
DokuWiki stores pages as text files and suits small teams that want little maintenance. MediaWiki needs a database and more upkeep, and pays it back with templates, categories and extensions for large, many-editor wikis.
Which VeloxaHost size fits MediaWiki?
The recommended 1 vCPU and 1 GB is a Veloxa Nano: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at the monthly price.