For a webmaster, it is important to check the log files on the server, especially log files for web server, mysql etc..
In this post I teach you how you can find the log files for Apache web server.
Apache Error Log File
Location of Error Log File on Debian and Ubuntu is /var/log/apache2/error.log
If you can not find the log file this address, do a search
grep ErrorLog /usr/local/etc/apache22/httpd.conf
grep ErrorLog /etc/apache2/apache2.conf
grep ErrorLog /etc/httpd/conf/httpd.conf
Apache Access Log File
Location of Apache Access Log File on Debian and Ubuntu is /var/log/apache2/error.log
If you can not find the log file, do a search
grep CustomLog /usr/local/etc/apache22/httpd.conf
grep CustomLog /etc/apache2/apache2.conf
grep CustomLog /etc/httpd/conf/httpd.conf
Previous post: Apache Log Files (FreeBSD).