Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

How to Increase upload_max_filesize in cPanel Using PHP INI Editor

📂 How to Increase upload_max_filesize in cPanel Using PHP INI Editor

When uploading large files to your website, you might encounter an error due to the default upload limit in PHP. To resolve this, you need to increase the upload_max_filesize and post_max_size in your PHP settings. In cPanel, you can easily modify these values using the MultiPHP INI Editor.

Follow this step-by-step guide to increase the upload limit and avoid file upload restrictions.


✅ Step-by-Step Guide to Increasing upload_max_filesize

Step 1: Log in to Your cPanel

  1. Open your web browser and go to your cPanel login URL.
    • Usually, this is yourdomain.com/cpanel
  2. Enter your cPanel username and password.
  3. Click the Log in button.

Step 2: Access the MultiPHP INI Editor

  1. Once inside cPanel, scroll down to the Software section.
  2. Click on MultiPHP INI Editor.

Step 3: Select the Domain

  1. In the MultiPHP INI Editor, you will see a dropdown menu at the top.
  2. Select the domain for which you want to modify the PHP settings.

Step 4: Modify the upload_max_filesize and post_max_size Values

  1. After selecting the domain, a list of PHP directives will appear.
  2. Locate the setting upload_max_filesize (this controls the maximum file upload size).
  3. Increase its value to your preferred limit, e.g., 256M.
  4. Locate post_max_size (this determines the maximum POST request size, which includes file uploads).
  5. Increase it to be equal to or greater than upload_max_filesize.

Example settings:

iniCopyEditupload_max_filesize = 256M
post_max_size = 256M

📌 Important: Make sure post_max_size is at least as large as upload_max_filesize, or larger.


Step 5: Save Changes

  1. Scroll down and click the Apply button.
  2. The new settings will take effect immediately, but you may need to restart PHP or clear the cache for changes to apply fully.

Step 6: Verify the Changes


🛠 Troubleshooting Tips

🔹 Changes not taking effect?

  • Make sure you selected the correct domain in MultiPHP INI Editor.
  • Restart PHP or clear your website cache.

🔹 Still unable to upload large files?

  • Check and increase max_execution_time and memory_limit in the same MultiPHP INI Editor.
  • Modify the .htaccess file or wp-config.php (for WordPress users) if needed.

🎯 Conclusion

By following these steps, you can easily increase the file upload limit in cPanel using the MultiPHP INI Editor. This is crucial for handling larger file uploads, especially when working with media-heavy websites, WordPress, or eCommerce platforms.

If you face any issues, contact us for further assistance. 🚀

Was this article helpful?
YesNo
Back To Top