Home >Operation and Maintenance >Apache >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 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!