Server rental store

Operating System Configuration

# Operating System Configuration

This article details the recommended operating system configuration for running a MediaWiki 1.40 installation. Proper OS configuration is crucial for performance, security, and stability. This guide is geared towards system administrators and those new to setting up a MediaWiki server.

Supported Operating Systems

MediaWiki 1.40 is known to function reliably on a variety of operating systems. However, some are more commonly used and better supported. The following table summarizes the most frequently used options:

Operating System Version Support Level
Linux Debian 11 (Bullseye) Excellent
Linux Ubuntu 20.04 LTS (Focal Fossa) Excellent
Linux CentOS 7 (EOL June 30, 2024 - *Migration Recommended*) Limited
Windows Server 2019 Good (Requires IIS configuration)
Windows Server 2022 Good (Requires IIS configuration)

It's strongly recommended to use a Long Term Support (LTS) distribution of Linux for stability and security updates. See Operating System Selection for further discussion.

Essential OS Packages

Several OS packages are essential for MediaWiki to function correctly. These include a web server, a database server, PHP, and necessary extensions.

Package Type Package Name (Example - varies by OS) Purpose
Web Server Apache 2.4 or Nginx 1.18 Handles HTTP requests and serves MediaWiki files. See Web Server Configuration.
Database Server MySQL 8.0 or MariaDB 10.6 Stores all MediaWiki data. See Database Server Configuration.
PHP PHP 7.4 or PHP 8.1 Processes MediaWiki code and generates HTML output. See PHP Configuration.
PHP Extensions php-gd, php-mbstring, php-xml, php-curl, php-zip Provides additional functionality for MediaWiki. See PHP Extensions.
Command-line Tools bash, curl, wget Useful for maintenance and troubleshooting. See Command Line Tools.

Ensure all packages are up-to-date using your operating system’s package manager (e.g., `apt update && apt upgrade` on Debian/Ubuntu, `yum update` on CentOS).

Recommended System Resources

The system resources required depend on the size and traffic of your wiki. The following table provides recommendations for small, medium, and large wikis. These are *minimum* recommendations; more resources will improve performance.

Wiki Size CPU RAM Disk Space Concurrent Users (Approximate)
Small ( < 10,000 pages) 2 cores 4 GB 50 GB 50
Medium (10,000 - 100,000 pages) 4 cores 8 GB 100 GB 200
Large ( > 100,000 pages) 8+ cores 16+ GB 500+ GB (SSD recommended) 500+

Consider using Solid State Drives (SSDs) for the database and MediaWiki installation to significantly improve performance. See Performance Tuning for more advanced optimization techniques.

Security Considerations

Operating system security is paramount. Always follow best practices for securing your server.

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️