MediaWiki is the wiki software behind Wikipedia. On the Nginx + PHP + MariaDB base, you only need to add a few PHP extensions and run the web installer.
MediaWiki is not installed automatically: only the Nginx + PHP + MariaDB base is. The latest stable release needs PHP 8.3, which this base does not ship: stay on the 1.43 LTS branch or upgrade PHP yourself.
Choose the resources of your VPS
MediaWiki runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Set up a MediaWiki wiki on an Nginx, PHP and MariaDB VPS: the PHP extensions to add, the web installer, LocalSettings.php and useful tips.
MediaWiki is the wiki software behind Wikipedia. On the Nginx + PHP + MariaDB base, you only need to add a few PHP extensions and run the web installer.
Step-by-step procedure
Order the LEMP VPS and connect
Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email, database name, MariaDB user and password, then connect over SSH.
Add the PHP extensions
MediaWiki requires intl and benefits from the APCu cache. GD is used to create image thumbnails. Install them, then restart PHP-FPM.
Download MediaWiki 1.43 LTS
Get the archive of the latest 1.43 LTS release from the mediawiki.org download page, extract it into /var/www/your-domain, then hand the files over to the www-data user.
Run the web installer
Open https://your-domain/mw-config/ in your browser. Choose MariaDB, enter the database name, user and password given at order time, then create the wiki administrator account.
Upload LocalSettings.php
At the end, the installer generates the LocalSettings.php file. Download it, then upload it to the site root, for example with scp. The wiki is then live.
Secure and tune Nginx
Block PHP execution in the images folder, adjust client_max_body_size for file uploads and set up SMTP email in LocalSettings.php, as described in the documentation.
Choose the resources of your VPS
MediaWiki runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: LEMP Web Server
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run MediaWiki on a VPS?
MediaWiki is the free software that runs Wikipedia. It keeps the history of every page and handles categories, templates, namespaces, group permissions and thousands of extensions. It works as an internal knowledge base, technical documentation or a community wiki around a game or a project.
Self-hosting it on a VPS puts you in charge of installed extensions, read and write permissions, upload size and backups. Your wiki content stays in your own MariaDB database. You also choose the version: the LTS branch receives security fixes for longer.
LEMP base already in place
The Nginx + PHP + MariaDB image installs the web server, PHP-FPM 8.2, MariaDB and certbot automatically, and creates the database you requested at order time.
Root access for extensions
With root SSH access, you install the missing PHP extensions and MediaWiki extensions, and tune Nginx and PHP to your needs.
Reserved resources
The vCPUs and RAM of the VPS serve only your wiki. The APCu cache and MariaDB have reserved memory, with no neighbour slowing pages down.
Backups before an update
A MediaWiki update touches files and the database. Start a VPS backup from the panel beforehand, so you can roll back if something goes wrong.
Before you start
Good to know: MediaWiki is not installed automatically: only the Nginx + PHP + MariaDB base is. The latest stable release needs PHP 8.3, which this base does not ship: stay on the 1.43 LTS branch or upgrade PHP yourself.
MediaWiki 1.43 LTS: the 1.46 stable release needs PHP 8.3
PHP extensions to add: intl, apcu, gd (thumbnails)
A domain or a free aclclouds.online subdomain
Little RAM: the docs recommend 256 MB minimum, the VPS Mini is plenty
An external SMTP service if the wiki sends email
Install MediaWiki on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the LEMP VPS and connect: Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email, database name, MariaDB user and password, then connect over SSH.
Add the PHP extensions: MediaWiki requires intl and benefits from the APCu cache. GD is used to create image thumbnails. Install them, then restart PHP-FPM.
Download MediaWiki 1.43 LTS: Get the archive of the latest 1.43 LTS release from the mediawiki.org download page, extract it into /var/www/your-domain, then hand the files over to the www-data user.
Run the web installer: Open https://your-domain/mw-config/ in your browser. Choose MariaDB, enter the database name, user and password given at order time, then create the wiki administrator account.
Upload LocalSettings.php: At the end, the installer generates the LocalSettings.php file. Download it, then upload it to the site root, for example with scp. The wiki is then live.
Secure and tune Nginx: Block PHP execution in the images folder, adjust client_max_body_size for file uploads and set up SMTP email in LocalSettings.php, as described in the documentation.
For which projects?
Internal knowledge base
Project technical documentation
Gaming community wiki
Topic encyclopedia
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run MediaWiki on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install MediaWiki on a VPS?
Order a VPS with the Nginx + PHP + MariaDB image, which already creates the database. Add the intl, apcu and gd PHP extensions, extract the MediaWiki archive into the site root, then open /mw-config/ for the web installer. Finally, upload the generated LocalSettings.php file to the root.
Which VPS plan for a MediaWiki wiki?
The MediaWiki documentation recommends at least 256 MB of RAM for a single-server site. The VPS Mini, with 2 vCPUs, 8 GB of RAM and 40 GB of storage, is very comfortable to start with. A busy wiki or one with many uploaded files can later move to the VPS Essential.
Is MediaWiki free?
Yes, MediaWiki is free software under the GPL, developed by the Wikimedia Foundation and its community. There is no license or paid account. Official extensions are free too. You only pay for the VPS, and possibly an external SMTP service if your wiki needs to send email.
Which MediaWiki version should I use with PHP 8.2?
The Nginx + PHP + MariaDB base ships PHP 8.2 on Debian 12. The 1.46 stable release needs PHP 8.3, so it will not install as is. The 1.43 LTS branch, maintained until the end of 2027, is the right choice. Check the Compatibility page on mediawiki.org before installing.
How do I enable short URLs in MediaWiki?
By default, addresses look like index.php?title=Page. To get /wiki/Page, set $wgArticlePath in LocalSettings.php and add the matching rewrite rule to the site's Nginx vhost. The Short URL manual on mediawiki.org gives the exact Nginx configuration to adapt.