View error logs in DirectAdmin
Error logs are essential for troubleshooting website problems. In this guide, we explain how to view error logs in DirectAdmin.
What are error logs?
Error logs are files where the server records errors that occur while running your website. They contain:
- PHP errors and warnings
- Apache web server errors
- Access problems (403, 404, 500 errors)
- Database connection issues
Viewing error logs
Via DirectAdmin
- Log in to DirectAdmin
- Go to Error Logs or Site Logs
- Select the log type:
- Error Log: Web server errors
- Access Log: All visitors and requests
- You'll see the last lines of the log file
Via File Manager
Logs are in /domains/yoursite.com/logs/:
error.log- Error messagesaccess.log- Access logs
Reading error logs
Typical PHP error:
[14-Jan-2026 10:30:45] PHP Fatal error: Uncaught Error:
Call to undefined function example() in /home/user/domains/site.com/public_html/file.php:25
Means:
- Date/time: When the error occurred
- Type: Fatal error (critical)
- Message: Function doesn't exist
- Location: file.php, line 25
HTTP status codes
| Code | Meaning | Solution |
|---|---|---|
| 403 | Access denied | Check permissions |
| 404 | Not found | Check URL/file |
| 500 | Server error | Check PHP/config |
| 502 | Bad Gateway | Server overloaded |
| 503 | Service unavailable | Maintenance/limit |
Common errors
PHP Fatal error
PHP Fatal error: Allowed memory size exhausted
Solution: Increase memory_limit in PHP settings.
File not found
File does not exist: /home/user/.../favicon.ico
Solution: Upload the missing file or ignore.
Permission denied
[error] [client IP] Permission denied: /path/to/file
Solution: Check CHMOD permissions (644 for files, 755 for folders).
Tips for debugging
- Check the timestamp: Recent errors are more relevant
- Look for patterns: Same error repeatedly? Fix the cause
- Start at bottom: Newest errors are at the bottom
- Note the line: File and line number point to the error
- Google the error: Many errors have been solved by others
WordPress debug mode
For more details in WordPress:
// In wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Logs appear in /wp-content/debug.log.
Need help?
We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.
0 van 0 vonden dit nuttig