Networking
- Networking Configuration for MediaWiki 1.40
This article details the essential networking configuration aspects for a MediaWiki 1.40 installation. Proper network setup is crucial for performance, security, and accessibility of your wiki. This guide assumes a basic understanding of networking concepts like IP addresses, DNS, and firewalls.
Overview
A well-configured network allows MediaWiki to efficiently serve pages to users, communicate with databases, and potentially interact with external services like search engines or OAuth providers. Key areas to consider include the web server's network interface, DNS resolution, firewall rules, and potential load balancing configurations. Misconfiguration in any of these areas can lead to accessibility issues, slow performance, or security vulnerabilities. Refer to Special:MyPreferences for user-specific settings that may impact network performance.
Web Server Network Interface
The web server (typically Apache or Nginx) needs a properly configured network interface. This interface is how the server connects to the network and receives requests from users.
Setting | Value |
---|---|
IP Address | Static IP address assigned (e.g., 192.168.1.10) |
Subnet Mask | Defines the network size (e.g., 255.255.255.0) |
Gateway | The router's IP address for external communication (e.g., 192.168.1.1) |
DNS Servers | Addresses of DNS servers for name resolution (e.g., 8.8.8.8, 8.8.4.4) |
These settings are usually configured through the operating system’s network configuration tools. For Linux systems, this often involves editing files like `/etc/network/interfaces` (Debian/Ubuntu) or `/etc/sysconfig/network-scripts/ifcfg-eth0` (CentOS/RHEL). Ensure the server has a static IP address to avoid issues if the IP address changes. See Manual:Configuration for more details.
DNS Configuration
Correct DNS configuration is vital for users to access your wiki using a domain name. You need to create an A record in your DNS zone file that points your domain name (e.g., `www.example.com`) to the static IP address of your web server. Consider using a Content Delivery Network (CDN) such as Help:CDN for improved performance.
DNS Record Type | Name | Value |
---|---|---|
A | www.example.com | 192.168.1.10 |
MX | example.com | mail.example.com (if handling email) |
CNAME | wiki | www.example.com (optional, for a shorter URL) |
DNS propagation can take up to 48 hours. You can verify DNS resolution using tools like `nslookup` or `dig`. See Special:Search for more information on wiki search functionality that relies on correct DNS.
Firewall Configuration
A firewall is essential for securing your MediaWiki installation. You need to allow inbound traffic on ports 80 (HTTP) and 443 (HTTPS) to your web server. If you are using SSH to administer the server, you should also allow inbound traffic on port 22 (or a custom SSH port). Restrict access to these ports to only trusted IP addresses or networks whenever possible. See Manual:Firewall for more advanced configuration options.
Port | Protocol | Action | Source |
---|---|---|---|
80 | TCP | ALLOW | Any |
443 | TCP | ALLOW | Any |
22 | TCP | ALLOW | Trusted IP(s) |
3306 | TCP | ALLOW | Server IP (for database access) |
Common firewall tools include `iptables` (Linux), `firewalld` (Linux), and Windows Firewall. Be sure to configure your firewall *before* making your wiki publicly accessible. Proper firewall configuration is critical for Special:Security and data protection.
Load Balancing (Optional)
For high-traffic wikis, consider using a load balancer to distribute traffic across multiple web servers. This improves performance and reliability. Load balancers can be hardware appliances or software solutions like HAProxy or Nginx.
Load balancing requires careful configuration of DNS and web server settings. The DNS record should point to the load balancer's IP address, and the load balancer should be configured to forward traffic to the backend web servers. See Help:Scalability for more details. Consider setting up a Special:Statistics page to monitor server load. Consult your hosting provider for assistance with load balancing if needed.
Related Pages
- Manual:Configuration
- Manual:Firewall
- Help:CDN
- Help:Scalability
- Special:MyPreferences
- Special:Search
- Special:Statistics
- Manual:Installing
- Manual:Upgrading
- Help:Speed Tips
- Help:PHP
- Help:Database
- Help:Web server
- Manual:Short URL
- Manual:HTTPS
- Special:Security
Intel-Based Server Configurations
Configuration | Specifications | Benchmark |
---|---|---|
Core i7-6700K/7700 Server | 64 GB DDR4, NVMe SSD 2 x 512 GB | CPU Benchmark: 8046 |
Core i7-8700 Server | 64 GB DDR4, NVMe SSD 2x1 TB | CPU Benchmark: 13124 |
Core i9-9900K Server | 128 GB DDR4, NVMe SSD 2 x 1 TB | CPU Benchmark: 49969 |
Core i9-13900 Server (64GB) | 64 GB RAM, 2x2 TB NVMe SSD | |
Core i9-13900 Server (128GB) | 128 GB RAM, 2x2 TB NVMe SSD | |
Core i5-13500 Server (64GB) | 64 GB RAM, 2x500 GB NVMe SSD | |
Core i5-13500 Server (128GB) | 128 GB RAM, 2x500 GB NVMe SSD | |
Core i5-13500 Workstation | 64 GB DDR5 RAM, 2 NVMe SSD, NVIDIA RTX 4000 |
AMD-Based Server Configurations
Configuration | Specifications | Benchmark |
---|---|---|
Ryzen 5 3600 Server | 64 GB RAM, 2x480 GB NVMe | CPU Benchmark: 17849 |
Ryzen 7 7700 Server | 64 GB DDR5 RAM, 2x1 TB NVMe | CPU Benchmark: 35224 |
Ryzen 9 5950X Server | 128 GB RAM, 2x4 TB NVMe | CPU Benchmark: 46045 |
Ryzen 9 7950X Server | 128 GB DDR5 ECC, 2x2 TB NVMe | CPU Benchmark: 63561 |
EPYC 7502P Server (128GB/1TB) | 128 GB RAM, 1 TB NVMe | CPU Benchmark: 48021 |
EPYC 7502P Server (128GB/2TB) | 128 GB RAM, 2 TB NVMe | CPU Benchmark: 48021 |
EPYC 7502P Server (128GB/4TB) | 128 GB RAM, 2x2 TB NVMe | CPU Benchmark: 48021 |
EPYC 7502P Server (256GB/1TB) | 256 GB RAM, 1 TB NVMe | CPU Benchmark: 48021 |
EPYC 7502P Server (256GB/4TB) | 256 GB RAM, 2x2 TB NVMe | CPU Benchmark: 48021 |
EPYC 9454P Server | 256 GB RAM, 2x2 TB NVMe |
Order Your Dedicated Server
Configure and order your ideal server configuration
Need Assistance?
- Telegram: @powervps Servers at a discounted price
⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️