Apache

Apache versions supported

Magento requires Apache 2.2.x or 2.4.x.

Help if you're just starting out

If you’re new to all this and need some help getting started, we suggest the following:

Important: Apache rewrites and .htaccess

This topic discusses how to enable Apache 2.2 rewrites and specify a setting for the distributed configuration file, .htaccess.

Magento uses server rewrites and .htaccess to provide directory-level instructions for Apache. The following instructions are included in all of the other sections in this topic as well.

Click to show Apache 2.4 instructions
Click to show Apache 2.2 instructions

Failure to enable these settings typically results in no styles displaying on your storefront or Admin.

Verify the Apache version

To verify the Apache version you’re currently running, enter:

apache2 -v
 

The result displays similar to the following:

Server version: Apache/2.2.22 (Ubuntu)
Server built:   Jul 22 2014 14:35:32
 

Installing or upgrading Apache on Ubuntu

The following sections discusses how to install or upgrade Apache:

  • Install Apache
  • Upgrade to Apache 2.4 on Ubuntu 12 to use PHP 5.6 or PHP 7

Installing Apache on Ubuntu 16, 14, or 12

Click to show/hide content

Upgrading Apache on Ubuntu 12

Click to show/hide content

Installing Apache on CentOS 6 or 7

Click to install Apache on CentOS 6 or 7

Solving 403 (Forbidden) errors

Click to install solve 403 errors