Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does PHP's error log reside in XAMPP?

Tags:

php

apache

xampp

I've been using XAMPP for Windows.

Where does PHP's error log reside in XAMPP?

like image 342
Emanuil Rusev Avatar asked Sep 15 '10 16:09

Emanuil Rusev


People also ask

Where does PHP store error log?

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.

Where is my Apache error log?

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.

How do I view PHP error logs?

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.

Where does Apache store its logs?

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.


2 Answers

\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.

like image 57
Lekensteyn Avatar answered Sep 24 '22 06:09

Lekensteyn


I found it in: \xampp\php\logs\php_error_log

like image 37
Hovercat Avatar answered Sep 20 '22 06:09

Hovercat