Whenever errors occur within your PHP applications, error logs are generated automatically as a file inside the directory where the script was executed.
Examples
- If an error occurs at
https://my-domain.tld, you will find the log file at/public_html/error_log. - If an error occurs in a subdirectory such as
https://my-domain.tld/path/, you will find the log file at/public_html/path/error_log.
The most recent log entries are always appended at the bottom of the error_log file.

