How to Increase PHP Upload Limit in cPanel
Quick Summary
If your website cannot upload large files, themes, plugins, or backups, you may need to increase PHP upload limits.
Common Upload Errors
You may see errors such as:
- The uploaded file exceeds the upload_max_filesize directive
- Maximum upload file size exceeded
- File is too large
- WordPress import failed
- Theme upload failed
- Plugin upload failed
PHP Values Related to Uploads
Common PHP settings include:
upload_max_filesize
post_max_size
memory_limit
max_execution_time
max_input_time
Steps to Increase Upload Limit
- Log in to cPanel.
- Search for PHP.
- Open MultiPHP INI Editor, Select PHP Version, or PHP Options.
- Select your domain.
- Increase the required values.
Common example values:
upload_max_filesize: 128M
post_max_size: 128M
memory_limit: 256M
max_execution_time: 300
max_input_time: 300
- Save changes.
- Test the upload again.
Important
post_max_size should be equal to or higher than upload_max_filesize.
Example:
upload_max_filesize: 128M
post_max_size: 128M or higher
WordPress Upload Limit
After changing PHP limits, check WordPress:
- Log in to WordPress Admin.
- Go to Media.
- Click Add New.
- Check maximum upload size.
Common Problems
Problem: Limit did not change.
Solution: Make sure you selected the correct domain.
Problem: Upload still fails.
Solution: Increase max_execution_time and memory_limit.
Problem: Backup upload fails.
Solution: Upload using File Manager or FTP instead.
Need Help?
Open a support ticket:
