✅ Step-by-Step Fix for “Unable to Upload Plugin Due to File Size Limit”
Sometimes when you try to upload a plugin via the WordPress dashboard, you may run into this frustrating message:
“The uploaded file exceeds the upload_max_filesize directive in php.ini”
This issue happens when your hosting configuration sets a low limit on the maximum file size that can be uploaded via WordPress.
Solution 1: Increase File Size Limit via .htaccess
- Login to your hosting panel or access your site via FTP.
- Open or create the
.htaccessfile in your WordPress root directory. - Add the following lines to 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 the file and refresh your site.
Solution 2: Modify php.ini (If You Have Access)
- Go to your hosting File Manager or FTP.
- Locate the
php.inifile (often in the root or insidepublic_html). - Add or update the following lines:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
⚙️ Solution 3: Update via wp-config.php
You can also define limits in wp-config.php:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Place this near the top of the file before the line that says /* That's all, stop editing! */.
Solution 4: Use FTP to Upload Plugin
- Extract the plugin ZIP on your computer.
- Use FileZilla or your hosting file manager to upload the extracted folder to:
wp-content/plugins/ - Go to your WordPress dashboard → Plugins → Activate the plugin.
Need Help?
If these steps seem overwhelming or don’t work due to hosting restrictions, the WPFix247 team is always here to help. We can increase your limits and upload the plugin for you—quickly and securely.