How to Increase PHP Upload Limits on Your WordPress Site (Post Max Size, Upload Max Filesize
If you have your WordPress site hosted with us and are experiencing issues uploading large files or themes due to PHP size restrictions, follow these steps to increase the limits via your WordPress dashboard.
Note: The maximum upload limit that can be set using
.htaccessis 300MB. If you set values above that, it may show in the media library but the upload will not work.
Steps to Increase PHP Memory Limits
Step 1: Install a File Manager Plugin
Log into your WordPress dashboard.
Navigate to Plugins > Add New.
Search for "WP File Manager" or any similar file manager plugin.
Click Install and then Activate the plugin.
Step 2: Locate the .htaccess File
.htaccess FileIn your WordPress dashboard, go to WP File Manager from the sidebar.
Open the folder named
public_html(or the root directory where WordPress is installed).Look for the file named
.htaccess.If it is not visible, enable the "Show Hidden Files" setting in the file manager plugin.
Step 3: Edit the .htaccess File
.htaccess FileRight-click on the
.htaccessfile.Select "Code Editor" or "Edit" (depending on your plugin).
Scroll to the bottom of the file and add the following lines based on your required limits:
apacheCopyEditphp_value upload_max_filesize 128M php_value post_max_size 128MClick Save or Update File.
How to Verify the Change
Go to Media > Add New in your WordPress dashboard.
Check the upload size mentioned at the bottom of the file upload area.
If it shows the new limit (e.g., 128MB), the update was successful.
Troubleshooting
Still seeing old limits? Clear your browser and site cache and recheck.
Uploads still fail? Ensure the limit is under 300MB. Anything higher needs to be configured via server-level settings.
Need help? Reach out to our support team.
Last updated
Was this helpful?