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

  1. Log in to cPanel.
  2. Search for PHP.
  3. Open MultiPHP INI Editor, Select PHP Version, or PHP Options.
  4. Select your domain.
  5. 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

  1. Save changes.
  2. 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:

  1. Log in to WordPress Admin.
  2. Go to Media.
  3. Click Add New.
  4. 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:

https://bill.cybrohost.com/submitticket.php

Was this answer helpful? 0 Users Found This Useful (0 Votes)