Share Article To

It is very often developer ask each others where to find my server configuration file.
Where is my httpd.conf file located in apache ?

httpd.conf is the server configuration file of Apache.
– Login to SSH
– Execute the below command

ps -ef | grep apache

You will get result like

apache   10995 14125  3 10:10 ?        00:00:14 /usr/sbin/httpd
apache   11007 14125  2 10:10 ?        00:00:10 /usr/sbin/httpd
apache   11043 14125  3 10:11 ?        00:00:12 /usr/sbin/httpd
apache   11123 14125  4 10:13 ?        00:00:09 /usr/sbin/httpd
apache   11124 14125  2 10:13 ?        00:00:06 /usr/sbin/httpd
apache   11125 14125  1 10:13 ?        00:00:04 /usr/sbin/httpd
apache   11223 14125  2 10:15 ?        00:00:02 /usr/sbin/httpd
apache   11282 14125  4 10:16 ?        00:00:02 /usr/sbin/httpd
apache   11283 14125  8 10:16 ?        00:00:03 /usr/sbin/httpd
root     11337 11286  0 10:16 pts/0    00:00:00 grep apache

Apache Httpd server

Then execute the below command

/usr/sbin/httpd  -V | grep SERVER_CONFIG_FILE

You will get result like

-D SERVER_CONFIG_FILE="conf/httpd.conf"

Write in comments your finding.

Leave a Reply

Your email address will not be published. Required fields are marked *