In plain English One of the most common programs that sends web pages to visitors. It is the waiter between your website's files and the people asking for them.
Apache HTTP Server is one of the oldest and most widely used open-source web serversWeb server The program that answers visitors’ browsers and sends them your website. Also used for the computer it runs on. More about Web server →. It receives requests from browsers and returns pages, running PHP or passing requests to other programs. It is the default on much shared hosting and on many control panels.
What sets it apart
Apache’s best-known feature is the .htaccess file: a configuration file placed in any folder that changes settings for that folder, such as redirects, rewrite rules and access restrictions, without touching the main server configuration or restarting anything. That is why shared hosts favour it: each customer can adjust their own site. The cost is speed, because Apache checks for these files on every request.
Apache works through modules, switched on and off with a2enmod and a2dismod on Debian and Ubuntu. mod_rewrite handles pretty URLs, mod_ssl handles HTTPSHTTPS The secure version of the web, shown by the padlock. Everything sent between you and the site is scrambled so nobody in between can read or change it. More about HTTPS →, and mod_proxy_fcgi passes PHP to PHP-FPMPHP-FPM The part of the server that runs PHP code, the language WordPress and many sites are written in, and hands the finished page to the web server. More about PHP-FPM →.
Where things are
| Debian and Ubuntu | AlmaLinux, Rocky, RHEL | |
|---|---|---|
| Service name | apache2 | httpd |
| Site configuration | /etc/apache2/sites-available/ | /etc/httpd/conf.d/ |
| Error log | /var/log/apache2/error.log | /var/log/httpd/error_log |
Test configuration changes before reloading with sudo apachectl configtest. Nginx is the main alternative; LiteSpeed is a commercial server that reads Apache’s configuration and .htaccess files.
Official documentation: httpd.apache.org