Usually caused by .htaccess or a plugin conflict.
public_html/.htaccess to .htaccess.bak..htaccess.Check that wp-config.php values match your DirectAdmin database:
DB_NAME → yourusername_dbnameDB_USER → yourusername_dbuserDB_PASSWORD → your DB passwordDB_HOST → localhostAdd to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
Or increase via DirectAdmin → PHP Configuration.
Go to WordPress Admin → Settings → Permalinks → Save Changes. This regenerates .htaccess.
Enable debug logging in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Check wp-content/debug.log for the error.
In DirectAdmin → PHP Configuration, increase:
upload_max_filesize → 64Mpost_max_size → 64M (must be ≥ upload size)