Home >Backend Development >PHP Tutorial >Where is PHP's Error Log Located in XAMPP for Windows?

Where is PHP's Error Log Located in XAMPP for Windows?

Susan Sarandon
Susan SarandonOriginal
2024-12-07 20:54:14798browse

Where is PHP's Error Log Located in XAMPP for Windows?

Finding PHP's Error Log in XAMPP

Question:

While utilizing XAMPP for Windows, you may encounter a situation where you need to locate PHP's error log. Where can you find it within the XAMPP installation directory?

Answer:

The PHP error log resides in the following path:

\xampp\apache\logs\error.log

This path assumes that XAMPP is installed in the default directory. If you have modified the installation directory, adjust the path accordingly.

It's important to note that the error log will only be written to this location if you haven't modified the error_log setting in PHP. To verify the current setting, you can use the phpinfo() function. If the error_log setting is different from the default path, the error log will be written to the location specified in that setting.

The above is the detailed content of Where is PHP's Error Log Located in XAMPP for Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn