Server rental store

Amazon EC2

# Amazon EC2 Server Configuration for MediaWiki

This article details the configuration of an Amazon Elastic Compute Cloud (EC2) instance for hosting a MediaWiki 1.40 installation. It is aimed at system administrators and newcomers to both AWS and MediaWiki deployment. We will cover instance selection, operating system considerations, and essential software installation.

== Understanding Amazon EC2

Amazon EC2 provides resizable compute capacity in the cloud. It allows you to rent virtual machines (instances) with various operating systems, CPU, memory, storage, and networking capacity. Choosing the right EC2 instance type is crucial for MediaWiki performance. Consider your anticipated user load, the size of your wiki (number of pages, files), and the complexity of your extensions. See Amazon Web Services for more information.

== Instance Type Selection

Selecting the appropriate EC2 instance type depends on your MediaWiki’s scale and requirements. Here's a comparison of common instance families suitable for MediaWiki:

Instance Family Description Suitable For
t3.medium General purpose, burstable performance. Small to medium wikis with moderate traffic.
m5.large General purpose, balanced compute, memory, and networking. Medium to large wikis with consistent traffic.
r5.large Memory-optimized, ideal for database-heavy workloads. Large wikis with extensive use of extensions and complex searches.
c5.large Compute-optimized, best for CPU-intensive tasks. Wikis with heavy image processing or complex templates.

It is recommended to start with a `t3.medium` instance and scale up as needed. Monitoring your server’s CPU usage, memory consumption, and disk I/O is essential for determining when to upgrade. Refer to the Server Monitoring article for details.

== Operating System and Initial Configuration

We recommend using Amazon Linux 2 or Ubuntu Server 22.04 LTS for your MediaWiki server. These distributions are well-supported and offer good performance.

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