aonurdemir
11/30/2017 - 2:41 PM

Find apache conf

Find apache conf

[trio@CentOS-65-64-minimal ~]$ps -ef | grep apache

apache    3688 13050  0 Nov26 ?        00:00:24 /usr/sbin/httpd
apache    3690 13050  0 Nov26 ?        00:00:23 /usr/sbin/httpd
apache    3692 13050  0 Nov26 ?        00:00:25 /usr/sbin/httpd

[trio@CentOS-65-64-minimal ~]$ /usr/sbin/httpd -V | grep HTTPD_ROOT
 -D HTTPD_ROOT="/etc/httpd"
 
[trio@CentOS-65-64-minimal ~]$ /usr/sbin/httpd -V | grep SERVER_CONFIG_FILE
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

If you append the paths, you will find the conf's path as:
/etc/httpd/conf/httpd.conf