Skip to content

Instantly share code, notes, and snippets.

@aonurdemir
Last active February 5, 2018 15:13
Show Gist options
  • Save aonurdemir/aa4ae93ee1b924e068cb89753817b037 to your computer and use it in GitHub Desktop.
Save aonurdemir/aa4ae93ee1b924e068cb89753817b037 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment