Get a site's error log
whm_get_error_logRead recent PHP or Apache error log lines for a domain to diagnose site failures. Choose the log source and line count when PHP errors are logged elsewhere.
Instructions
Get recent error log lines for a domain. php reads the error_log file in the domain's document root. apache_error and apache_suexec read the Apache logs for that domain. If php returns nothing, the site may log PHP errors elsewhere, so try apache_error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many of the most recent lines to return. | |
| domain | Yes | ||
| source | No | Which log to read. | php |