Home >Backend Development >PHP Tutorial >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!