Computer Hacking Forensic Investigator (CHFI) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

What is the default path of the Apache error log in Linux?

/usr/local/apache/logs/error.log

The default path for the Apache error log in a typical Linux environment is often found in the location of the server’s log files related to its installation and configuration. The most common path for the Apache error log is located in the `var/log` directory, which is standard for storing log files for various services on Linux systems. Option B, `/var/log/apache2/error.log`, is indeed one of the standard default locations as it follows the convention of placing logs within the `var/log` directory; this is seen particularly in Debian-based distributions such as Ubuntu. Similarly, option C, `/etc/httpd/logs/error.log`, is part of the default structure for Red Hat-based distributions and can also be a default log path for Apache installations that adhere to that layout. Option D, containing `/usr/bin/apache/logs/error.log`, suggests a location within the executable directory for binaries, which is not a conventional logging location. Therefore, the answer indicating the default path for Apache's error log highlights how different distributions or installations may set this default, while the selected option doesn’t match the standard paths typically found in modern Linux systems.

/var/log/apache2/error.log

/etc/httpd/logs/error.log

/usr/bin/apache/logs/error.log

Next

Report this question