I've been using XAMPP for Windows.
Where does PHP's error log reside in XAMPP?
The location of the error log file itself can be set manually in the php. ini file. On a Windows server, in IIS, it may be something like "'error_log = C:\log_files\php_errors. log'" in Linux it may be a value of "'/var/log/php_errors.
On a Linux server, you can access Apache error logs from var/log/apache2/error. log. You can then log out the errors from the error log file by writing the following command: sudo tail -f /var/log/apache2/error.
These files are owned by root, so you need to be root or use sudo to see it, or read it. For those looking for a Windows solution, use php --info | findstr /r /c:"error_log" to see where the log file is.
Log Format In Linux, Apache commonly writes logs to the /var/log/apache2 or /var/log/httpd directories depending on your OS and Virtual Host overrides.
\xampp\apache\logs\error.log
, where xampp
is your installation folder. If you haven't changed the error_log
setting in PHP (check with phpinfo()
), it will be logged to the Apache log.
I found it in: \xampp\php\logs\php_error_log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With