How to locate httpd.conf apache configuration file

Run following on Linux terminal :

ps -ef | grep apache

which will yield the result like

root  3753   1  0 Jul12 ?    00:00:19 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

The last parameter above ( /etc/apache2/httpd.conf) will show the apache directory and the path of httpd.conf .