You get a bonus - 1 coin for daily activity. Now you have 1 coin

Apache: where the configuration files are located on Debian, CentOS, FreeBSD, ubuntu, and RedHat

Practice



So, you have the task of editing the Apache web server's configuration files, but here's the problem - you don't know where they are. Whether because you switched to an OS type you're not used to, or you're installing Apache for the first time, or for some other reason - you need to find them.

Well, let's show where the Apache configs are located for different operating systems, namely: Linux Debian (and ubuntu), Linux CentOS (and RedHat), and FreeBSD.


Debian:

/etc/apache2

files: everything located there. The main ones: apache2.conf and ports.conf, as well as everything inside the sites-enabled and mods-enabled folders.


CentOS / RedHat:

/etc/httpd

Main config file: /etc/httpd/conf/httpd.conf

Additional files: /etc/httpd/conf.d/*


FreeBSD:

/usr/local/etc/apache22

Main config: /usr/local/etc/apache22/httpd.conf

Additional configs: everything located in the /usr/local/etc/apache22/Includes folder

Applies to: Apache 2.x; Debian, CentOS, FreeBSD (ubuntu, redhat)

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)