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

Where is the apache error log?

藏色散人
Release: 2019-07-03 11:17:10
Original
6865 people have browsed it

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
Copy after login

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
Copy after login

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"
Copy after login

For more Apache related knowledge, please visit the Apache usage tutorial column!

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template