Php – Apache error log with PHP errors

apache-2.2loggingPHP

I just set up PHP and Apache and would like to find where the errors are going. What is the default path of the error logs in apache for PHP?

Best Answer

There are the locations in these popular operating systems:

RHEL / Red Hat / CentOS / Fedora Linux Apache error file location - /var/log/httpd/error_log

Debian / Ubuntu Linux Apache error log file location - /var/log/apache2/error.log

FreeBSD Apache error log file location - /var/log/httpd-error.log

The detailed answer about the Apache log files is here: http://www.cyberciti.biz/faq/apache-logs/

Related Topic