Last active
February 5, 2018 15:13
-
-
Save aonurdemir/aa4ae93ee1b924e068cb89753817b037 to your computer and use it in GitHub Desktop.
Find apache conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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