What it means
The "413 Request Entity Too Large" error appears when you try to upload a file that's bigger than your web server allows. This commonly happens when uploading a large plugin zip, a theme, or a media file.
Fix 1 — PHP settings (php.ini)
If your host gives you cPanel:
- Open cPanel → MultiPHP INI Editor (under Software)
- Pick your domain from the dropdown
- Adjust these values: –
max_execution_time—300–upload_max_filesize—64M–post_max_size—64M - Save
Fix 2 — .htaccess
If you can edit .htaccess directly:
- Open cPanel → File Manager (or connect via FTP)
- Find
.htaccessin your WordPress root - Add these lines at the bottom:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
- Save
Fix 3 — theme functions.php
If neither of the above is available:
- Open your active theme's
functions.php - Add at the end of the file:
@ini_set('upload_max_size', '64M');
@ini_set('post_max_size', '64M');
@ini_set('max_execution_time', '300');
- Save
Caveat: functions.php-based limits reset if you switch themes. Use one of the other methods if you anticipate changing themes.
Still seeing 413?
The error is being generated upstream of WordPress:
- CDN limits — Cloudflare, BunnyCDN, etc. have their own request-size caps. Check their dashboard.
- Host plan limits — some shared hosts cap upload size regardless of PHP. Contact support and ask them to raise it.
Always back up first
Whatever method you choose, back up the file you're editing before making changes so you can roll back.