Common WordPress Issues on DirectAdmin
500 Internal Server Error
Usually caused by .htaccess or a plugin conflict.
- Rename
public_html/.htaccessto.htaccess.bak. - If the site loads, go to Settings → Permalinks → Save to regenerate
.htaccess. - If a plugin caused it, deactivate all plugins and reactivate one by one.
"Error Establishing a Database Connection"
Check that wp-config.php values match your DirectAdmin database:
DB_NAME→yourusername_dbnameDB_USER→yourusername_dbuserDB_PASSWORD→ your DB passwordDB_HOST→localhost
PHP Memory Limit
Add to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
Or increase via DirectAdmin → PHP Configuration.
404 on Pages (Permalink Issue)
Go to WordPress Admin → Settings → Permalinks → Save Changes. This regenerates .htaccess.
White Screen of Death
Enable debug logging in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Check wp-content/debug.log for the error.
Upload Size Too Small
In DirectAdmin → PHP Configuration, increase:
upload_max_filesize→64Mpost_max_size→64M(must be ≥ upload size)