Categories: Ubuntu

How to Find httpd.conf file Location on CentOS, Ubuntu, Red Hat, Mac and Others

This article lists the default installation layouts for Apache httpd.conf on different operating systems and distributions. For new users, it is difficult to find the httpd.conf file on the server. They are various kind of Linux distributions in the market, So every distribution has httpd.conf file but it not located in the same location path. The httpd.conf directory differs across Unix & Linux becomes like Ubuntu, CentOS, Red Hat, Mandriva, Mac OS X, and XAMPP. Various third-party distributors modify the layout to conform to local policies. So the following sections show you where the file is located in server for different distributions.

Note: Apache httpd.conf default path /usr/local/apache2/conf/httpd.conf

Below table lists the httpd.conf path for each operating system and different distributions.

Operating System/ Distributions httpd.conf File Location
CentOS 5.2 /etc/httpd/conf/httpd.conf
CentOS 5.3 /etc/httpd/conf/httpd.conf
CentOS 7 /usr/local/apache/conf/httpd.conf
Red Hat 5.6 /etc/httpd/conf/httpd.conf
Red Hat 9.0 /etc/httpd/conf/httpd.conf
Ubuntu 7.04 Feisty Fawn /etc/apache2/httpd.conf
Ubuntu 8.10 Intrepid Ibex /etc/apache2/httpd.conf
Ubuntu 16.10 Yakkety Yak /etc/apache2/httpd.conf
Fedora Core /etc/httpd/conf/httpd.conf
Debian /etc/apache2/apache2.conf
Mandriva /etc/httpd/conf/httpd.conf
Mac OSX /etc/apache2/httpd.conf
XAMPP /Applications/XAMPP/etc/httpd.conf

The post How to Find httpd.conf file Location on CentOS, Ubuntu, Red Hat, Mac and Others appeared first on Linux, Angular, Angular JS, jQuery, PHP, MySQL and Web Development Tutorials.

Ubuntu Server Admin

Recent Posts

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

18 hours ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

2 days ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

2 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

3 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

3 days ago

How To Install DNS Server (Bind9) On Ubuntu 20.04

Now I want to share the DNS server installation process on your Ubuntu 20.04 server.…

3 days ago