<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Apache_web_server</id>
	<title>Apache web server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Apache_web_server"/>
	<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Apache_web_server&amp;action=history"/>
	<updated>2026-04-14T19:50:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://serverrental.store/index.php?title=Apache_web_server&amp;diff=1328&amp;oldid=prev</id>
		<title>Admin: Automated server configuration article</title>
		<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Apache_web_server&amp;diff=1328&amp;oldid=prev"/>
		<updated>2025-04-15T08:23:36Z</updated>

		<summary type="html">&lt;p&gt;Automated server configuration article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Apache Web Server Configuration for MediaWiki 1.40&lt;br /&gt;
&lt;br /&gt;
This article details the necessary configuration of the Apache web server to host a MediaWiki 1.40 installation. It is geared towards system administrators and newcomers alike, providing a comprehensive guide to ensure a secure and performant setup.  Proper Apache configuration is crucial for MediaWiki's functionality, security, and scalability. We will cover essential modules, virtual host setup, and performance optimizations.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Before beginning, ensure you have:&lt;br /&gt;
&lt;br /&gt;
* A server with a supported operating system (Linux distributions like Ubuntu, Debian, CentOS are common).&lt;br /&gt;
* Apache 2.4 or later installed.  Verify with `apache2 -v` or `httpd -v`.&lt;br /&gt;
* Root or sudo access to the server.&lt;br /&gt;
* Basic familiarity with the command line.&lt;br /&gt;
* A working MediaWiki 1.40 installation (files placed in the webroot). See [[MediaWiki Installation]] for details.&lt;br /&gt;
* Understanding of [[Virtual Hosts]] and their purpose.&lt;br /&gt;
&lt;br /&gt;
== Required Apache Modules ==&lt;br /&gt;
&lt;br /&gt;
MediaWiki relies on several Apache modules for its operation.  These modules must be enabled.  The commands to enable modules vary depending on your operating system.  Here’s a typical list:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Module Name&lt;br /&gt;
! Description&lt;br /&gt;
! Enable Command (Ubuntu/Debian)&lt;br /&gt;
! Enable Command (CentOS/RHEL)&lt;br /&gt;
|-&lt;br /&gt;
| `mod_rewrite`&lt;br /&gt;
| Enables URL rewriting, essential for MediaWiki's clean URLs.&lt;br /&gt;
| `sudo a2enmod rewrite`&lt;br /&gt;
| `sudo yum install mod_rewrite` (then restart Apache)&lt;br /&gt;
|-&lt;br /&gt;
| `mod_expires`&lt;br /&gt;
| Allows setting of HTTP headers for browser caching.&lt;br /&gt;
| `sudo a2enmod expires`&lt;br /&gt;
| `sudo yum install mod_expires` (then restart Apache)&lt;br /&gt;
|-&lt;br /&gt;
| `mod_deflate`&lt;br /&gt;
| Compresses HTTP responses, improving performance.&lt;br /&gt;
| `sudo a2enmod deflate`&lt;br /&gt;
| `sudo yum install mod_deflate` (then restart Apache)&lt;br /&gt;
|-&lt;br /&gt;
| `mod_headers`&lt;br /&gt;
| Allows modification of HTTP response headers.&lt;br /&gt;
| `sudo a2enmod headers`&lt;br /&gt;
| `sudo yum install mod_headers` (then restart Apache)&lt;br /&gt;
|-&lt;br /&gt;
| `mod_ssl`&lt;br /&gt;
| Provides support for HTTPS (SSL/TLS). Required for secure connections.&lt;br /&gt;
| `sudo a2enmod ssl`&lt;br /&gt;
| `sudo yum install mod_ssl` (then restart Apache)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
After enabling modules, *always* restart Apache: `sudo systemctl restart apache2` (Ubuntu/Debian) or `sudo systemctl restart httpd` (CentOS/RHEL).  Check your Apache error logs if you encounter issues.  See [[Apache Error Logs]] for assistance.&lt;br /&gt;
&lt;br /&gt;
== Virtual Host Configuration ==&lt;br /&gt;
&lt;br /&gt;
A virtual host allows you to host multiple websites (or in this case, a MediaWiki installation) on a single server.  This is best practice.&lt;br /&gt;
&lt;br /&gt;
1.  Create a new virtual host configuration file (e.g., `/etc/apache2/sites-available/mediawiki.conf` on Ubuntu/Debian or `/etc/httpd/conf.d/mediawiki.conf` on CentOS/RHEL).&lt;br /&gt;
&lt;br /&gt;
2.  Add the following configuration, adjusting paths to match your setup. Replace `yourdomain.com` with your actual domain name:&lt;br /&gt;
&lt;br /&gt;
```apache&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName yourdomain.com&lt;br /&gt;
    DocumentRoot /var/www/mediawiki&lt;br /&gt;
    &amp;lt;Directory /var/www/mediawiki&amp;gt;&lt;br /&gt;
        Options FollowSymLinks&lt;br /&gt;
        AllowOverride All&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    ErrorLog ${APACHE_LOG_DIR}/mediawiki_error.log&lt;br /&gt;
    CustomLog ${APACHE_LOG_DIR}/mediawiki_access.log combined&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
    ServerName yourdomain.com&lt;br /&gt;
    DocumentRoot /var/www/mediawiki&lt;br /&gt;
    &amp;lt;Directory /var/www/mediawiki&amp;gt;&lt;br /&gt;
        Options FollowSymLinks&lt;br /&gt;
        AllowOverride All&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    ErrorLog ${APACHE_LOG_DIR}/mediawiki_ssl_error.log&lt;br /&gt;
    CustomLog ${APACHE_LOG_DIR}/mediawiki_ssl_access.log combined&lt;br /&gt;
&lt;br /&gt;
    SSLEngine on&lt;br /&gt;
    SSLCertificateFile /path/to/your/certificate.pem&lt;br /&gt;
    SSLCertificateKeyFile /path/to/your/private.key&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
3.  Enable the virtual host (Ubuntu/Debian): `sudo a2ensite mediawiki.conf`.  Then, restart Apache.&lt;br /&gt;
&lt;br /&gt;
== Key Configuration Directives ==&lt;br /&gt;
&lt;br /&gt;
Several Apache directives are critical for MediaWiki's proper functioning.&lt;br /&gt;
&lt;br /&gt;
*   `AllowOverride All`:  This allows MediaWiki's `.htaccess` file to override Apache's default configuration.  This is necessary for URL rewriting and other features.&lt;br /&gt;
*   `Require all granted`:  Allows access to the MediaWiki directory from all sources.  Adjust this for more restrictive security if needed (see [[Apache Security]]).&lt;br /&gt;
*   `DocumentRoot`: Specifies the directory where your MediaWiki files are located.&lt;br /&gt;
*   `ErrorLog` and `CustomLog`:  Define the paths to the error and access logs.  Essential for troubleshooting.&lt;br /&gt;
*   `SSLEngine on`: Enables SSL/TLS for secure HTTPS connections.&lt;br /&gt;
*   `SSLCertificateFile` and `SSLCertificateKeyFile`:  Point to your SSL certificate and private key files.&lt;br /&gt;
&lt;br /&gt;
== Performance Optimization ==&lt;br /&gt;
&lt;br /&gt;
Optimizing Apache can significantly improve MediaWiki's performance.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Optimization&lt;br /&gt;
! Description&lt;br /&gt;
! Configuration Example&lt;br /&gt;
|-&lt;br /&gt;
| Browser Caching&lt;br /&gt;
| Instructs browsers to cache static assets (images, CSS, JavaScript).&lt;br /&gt;
| `Header append Cache-Control &amp;quot;max-age=604800, public&amp;quot;` (in virtual host configuration)&lt;br /&gt;
|-&lt;br /&gt;
| Gzip Compression&lt;br /&gt;
| Compresses HTTP responses, reducing bandwidth usage and improving load times.&lt;br /&gt;
| `mod_deflate` must be enabled.  Configuration in virtual host.&lt;br /&gt;
|-&lt;br /&gt;
| Keep-Alive&lt;br /&gt;
| Enables persistent connections, reducing overhead.&lt;br /&gt;
| `KeepAlive On` and `MaxKeepAliveRequests 100` (in Apache main configuration)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Consider using a caching reverse proxy like [[Varnish]] or [[Nginx]] in front of Apache for even greater performance gains.&lt;br /&gt;
&lt;br /&gt;
== Security Considerations ==&lt;br /&gt;
&lt;br /&gt;
*   **SSL/TLS:** Always use HTTPS to encrypt communication between the server and users.  Obtain a valid SSL certificate from a trusted Certificate Authority (CA). See [[SSL Configuration]].&lt;br /&gt;
*   **`.htaccess` Restrictions:** Carefully review and restrict the permissions within your `.htaccess` file to prevent unauthorized access.&lt;br /&gt;
*   **Regular Updates:** Keep Apache and all related modules up to date to patch security vulnerabilities.&lt;br /&gt;
*   **Firewall:** Configure a firewall to restrict access to your server to only necessary ports (e.g., 80, 443).  See [[Server Firewall]].&lt;br /&gt;
*   **Disable Directory Listing:** Prevent Apache from listing directory contents if an index file is not present.  Use `Options -Indexes` in your virtual host configuration.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
*   **500 Internal Server Error:** Check your Apache error logs for details.  Common causes include incorrect file permissions or errors in your `.htaccess` file.&lt;br /&gt;
*   **403 Forbidden:**  Indicates a permission issue. Ensure the Apache user has read access to the MediaWiki files.&lt;br /&gt;
*   **404 Not Found:**  Verify that your virtual host configuration is correct and that the `DocumentRoot` points to the correct directory.  Also, check that your MediaWiki URL rewriting rules are properly configured.&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
*   [[MediaWiki Installation]]&lt;br /&gt;
*   [[Apache Error Logs]]&lt;br /&gt;
*   [[Apache Security]]&lt;br /&gt;
*   [[SSL Configuration]]&lt;br /&gt;
*   [[Server Firewall]]&lt;br /&gt;
*   [[Virtual Hosts]]&lt;br /&gt;
*   [[Varnish]]&lt;br /&gt;
*   [[Nginx]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Configurations]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Intel-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-6700K/7700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2 x 512 GB&lt;br /&gt;
| CPU Benchmark: 8046&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-8700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2x1 TB&lt;br /&gt;
| CPU Benchmark: 13124&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-9900K Server]]&lt;br /&gt;
| 128 GB DDR4, NVMe SSD 2 x 1 TB&lt;br /&gt;
| CPU Benchmark: 49969&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Workstation]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2 NVMe SSD, NVIDIA RTX 4000&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AMD-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 5 3600 Server]]&lt;br /&gt;
| 64 GB RAM, 2x480 GB NVMe&lt;br /&gt;
| CPU Benchmark: 17849&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 7 7700 Server]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2x1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 35224&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 5950X Server]]&lt;br /&gt;
| 128 GB RAM, 2x4 TB NVMe&lt;br /&gt;
| CPU Benchmark: 46045&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 7950X Server]]&lt;br /&gt;
| 128 GB DDR5 ECC, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 63561&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/1TB)]]&lt;br /&gt;
| 128 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/2TB)]]&lt;br /&gt;
| 128 GB RAM, 2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/4TB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/1TB)]]&lt;br /&gt;
| 256 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/4TB)]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 9454P Server]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Order Your Dedicated Server ==&lt;br /&gt;
[https://powervps.net/?from=32 Configure and order] your ideal server configuration&lt;br /&gt;
&lt;br /&gt;
=== Need Assistance? ===&lt;br /&gt;
* Telegram: [https://t.me/powervps @powervps Servers at a discounted price]&lt;br /&gt;
&lt;br /&gt;
⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>