Apache Tips & Tricks: Default Apache2 Configuration Files Location

RussianRoot 18/07/2013 0
Apache Tips & Tricks: Default Apache2 Configuration Files Location

Applies: apache 2.0.x Required apache module: – Scope: global server configuration Type: informational

Description: where the default apache2 configuration files are located on various Linux distributions. Useful: hmm… you probably know this already, so not really useful… Just as a reference in case you are not familiar with a particular Linux distribution package.

Based on the particular Linux distribution you are using, the apache package might use different defaults on where to place its configuration file. Here are the ones I have worked with… if you don’t see the one you are using feel free to ping me to add it here.

Debian:

Global server configuration location: /etc/apache2/apache2.conf Other configuration files included in the global configuration: – module loading :/etc/apache2/mods-enabled/.load /etc/apache2/mods-enabled/.conf – vhosts loading:/etc/apache2/sites-enabled/[.#]*** – other local configurations (added manually or by other packages): /etc/apache2/conf.d/[.#]*** – listening port: /etc/apache2/ports.conf – other user configurations: /etc/apache2/httpd.conf

Running as: www-data (user) www-data (group) Binary file: apache2 (/usr/sbin/apache2)

RHEL / Fedora / Centos:

Global server configuration location: /etc/httpd/conf/httpd.conf Other configuration files included in the global configuration: – various module configurations:/etc/httpd/conf/conf.d/*.conf

Running as: apache (user) apache (group) Binary file: httpd (/usr/sbin/httpd)

Leave A Response »


9 × 7 =