Linux apache folder location Hello
Can not find apache folder location.
By default it must be on /etc/apahc2/ but on server there is not such folder.
How can I find it ?
The directory location should be /etc/apache2/
@petrit
Yes But there is not such directory l
@Laracast13 Are you sure that you are running apache2 then? Check for /etc/nginx
@Laracast13 no as you can see what you stated is different than what he stated
/etc/apahc2/ is not /etc/apache2/ make sure to spell right in the server as well.
Edit: are you using a vps or a shared hosting?
@Sinnbeck
Yes
# httpd -v
Server version: Apache/2.4.6 (CentOS)
@Laracast13 Ah centos. My guess is that it is in /etc/httpd
Try running apachectl -V or httpd -V
@Sinnbeck
]# httpd -V
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
Server's Module Magic Number: 20120211:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/run/httpd/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
@Laracast13 So it seems I was right?
HTTPD_ROOT="/etc/httpd"
Please sign in or create an account to participate in this conversation.