Home>Article>Operation and Maintenance> Where is the apache error log?

Where is the apache error log?

藏色散人
藏色散人 Original
2019-07-03 11:17:10 6712browse

Where is the apache error log?

Where is the apache error log?

Default apache error log location for distributions:

RHEL / Red Hat / CentOS / Fedora – / var / log / httpd / error_log Debian / Ubuntu – /var/log/apache2/error.log FreeBSD – /var/log/httpd-error.log

To find the exact apache error log file location, you can use the grep command:

# grep ErrorLog /usr/local/etc/apache22/httpd.conf # grep ErrorLog /etc/apache2/apache2.conf # grep ErrorLog /etc/httpd/conf/httpd.conf

Sample output:

# ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a ErrorLog "/var/log/httpd-error.log"

For more Apache related knowledge, please visit theApache usage tutorialcolumn!

The above is the detailed content of Where is the apache error log?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn