
How to Increase Max Upload Size in cPanel (Quick & Easy)
TL;DR
- Common Issue: The “upload limit exceeded” error is a frequent problem for website owners trying to upload large files.
- Adjust PHP Settings: Increase the upload size by modifying PHP settings in cPanel, such as
upload_max_filesize
,post_max_size
, andmemory_limit
. - Edit .htaccess File: For additional control, update the
.htaccess
file with custom rules to increase file size limits. - Use Plugins for WordPress: Plugins like WP Upload Max can simplify the process for WordPress users by adjusting limits directly.
- Troubleshooting Tips: Ensure changes are saved and test uploads to confirm the new limits are applied. Check for hosting restrictions if issues persist.
Ever tried uploading a file to your website only to hit that frustrating “upload limit exceeded” error? You’re not alone. This common issue affects thousands of website owners daily.
The good news? Fixing your cPanel max upload size is easier than you think. Whether you’re uploading large images, videos, or plugin files, this guide will show you exactly how to increase those pesky limits.
You’ll learn four proven methods that work with most hosting providers. Plus, I’ll share troubleshooting tips when things don’t go as planned.
Let’s get your files uploading without limits.
Understanding File Upload Size Limits in cPanel
Before we jump into solutions, let’s understand what’s happening behind the scenes. Your hosting server uses PHP settings to control file uploads. Three main settings work together:
- upload_max_filesize: This sets the maximum size for individual files. Default is usually 2MB to 32MB.
- post_max_size: This controls the total size of all data sent in a single request. It should be larger than upload_max_filesize.
- memory_limit: This determines how much memory PHP can use. It needs to be bigger than both settings above.
These limits exist for good reasons. They protect servers from overload and prevent malicious attacks. But sometimes you need bigger limits for legitimate use. That’s where these methods come in handy.
Method 1: Change Upload Limit via MultiPHP INI Editor
This is the easiest method for most cPanel users. The MultiPHP INI Editor gives you a user-friendly interface to modify PHP settings.
Here’s how to do it:
Step 1: Log into your cPanel account.
Step 2: Look for “Software” section and click “MultiPHP INI Editor.”
Step 3: Select your domain from the dropdown menu.
Step 4: Find these three settings and increase their values:
- upload_max_filesize: Set to your desired file size (like 100M)
- post_max_size: Set this higher than upload_max_filesize (like 120M)
- memory_limit: Set this highest of all (like 256M)
Step 5: Click “Apply” to save your changes.
Step 6: Wait 2-3 minutes for changes to take effect.
This method works great with shared hosting providers like SkyNetHosting.net. Their cPanel interface makes these changes simple and immediate.
Method 2: Modify .htaccess File Settings
Can’t find MultiPHP INI Editor? No problem. The .htaccess method works on most servers.
Step 1: Access your website files through File Manager in cPanel.
Step 2: Navigate to your website’s root directory (usually public_html).
Step 3: Look for the .htaccess file. If you don’t see it, enable “Show Hidden Files” in File Manager settings.
Step 4: Right-click the .htaccess file and select “Edit.”
Step 5: Add these lines at the top of the file:
php_value upload_max_filesize 100M
php_value post_max_size 120M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Step 6: Save the file and close the editor.
Step 7: Test your upload limits.
Be careful with this method. One typo can break your website. Always backup your .htaccess file first.
Method 3: Edit php.ini or user.ini File
Some hosting setups require direct PHP configuration file editing. This method gives you the most control.
Step 1: Open File Manager in cPanel.
Step 2: Go to your domain’s root folder.
Step 3: Look for either “php.ini” or “.user.ini” file.
Step 4: If neither exists, create a new file called “php.ini.”
Step 5: Add or modify these lines:
upload_max_filesize = 100M
post_max_size = 120M
memory_limit = 256M
max_execution_time = 300
max_input_time = 300
Step 6: Save the file.
Step 7: Some servers need you to restart PHP. Contact your hosting provider if changes don’t work immediately.
This method works well with hosting providers that give you more server control.
Method 4: Adjust Settings via WHM (for VPS/Dedicated Users)
Got root access through WHM (Web Host Manager)? You can make global changes that affect all accounts.
Step 1: Log into WHM as root.
Step 2: Search for “MultiPHP INI Editor” in the search box.
Step 3: Select “Editor Mode” at the top.
Step 4: Choose “System PHP-INI” for global changes.
Step 5: Find and modify these settings:
- upload_max_filesize = 100M
- post_max_size = 120M
- memory_limit = 256M
Step 6: Click “Save” to apply changes server-wide.
This method only works if you have WHM access. Most shared hosting customers won’t have this option.
Troubleshooting: Changes Not Taking Effect?
Made changes but still hitting upload limits? Here’s what to check:
- Wait for Propagation: Some servers need 5-10 minutes to apply new settings. Be patient.
- Check File Permissions: Your php.ini or .user.ini file needs proper permissions. Set it to 644.
- Multiple PHP Versions: Your domain might use a different PHP version. Check which version is active in cPanel.
- Server-Level Restrictions: Some hosting providers set hard limits that override your changes.
- WordPress Specific: WordPress has its own upload limits. Check your wp-config.php file too.
- Cache Issues: Clear any caching plugins or server cache after making changes.
- Syntax Errors: Double-check your code for typos. One wrong character breaks everything.
Still having trouble? Create a simple PHP file with this code to check your current limits:
<?php
phpinfo();
?>
Upload it to your website and visit the file in your browser. Search for “upload_max_filesize” to see your current settings.
When to Contact Your Hosting Provider
Sometimes you need professional help. Contact your hosting provider when:
- Shared hosting restrictions: Your provider might have hard limits you can’t override.
- No cPanel access: Some hosting setups don’t give you access to these settings.
- Business requirements: You need limits higher than typical shared hosting allows.
- Technical errors: Changes cause website errors or don’t work at all.
- Security concerns: You’re unsure about making these changes safely.
Quality hosting providers like SkyNetHosting.net offer 24/7 support for these issues. Their technical team can help you increase limits safely without breaking your website.
They also provide higher-tier hosting plans with increased default limits. This eliminates the need for manual adjustments entirely.
Ready for Unlimited File Uploads
You now have four proven methods to increase your cPanel max upload size. Most website owners find success with Method 1 (MultiPHP INI Editor) or Method 2 (.htaccess editing).
Remember these key points:
- Always backup files before making changes
- Set memory_limit higher than your upload limits
- Wait a few minutes for changes to take effect
- Test your new limits with actual file uploads
Still struggling with upload limits? Consider upgrading to a hosting provider that offers better control and higher default limits.
SkyNetHosting.net provides reseller hosting with generous upload limits and full cPanel access. Their plans include free WHMCS licenses and 24/7 technical support to help you manage these settings properly.
Ready to stop fighting with upload limits? Your files are waiting.
FAQ
1. What is cPanel’s max upload size by default?
The default upload size in cPanel is often set to 2MB. The outcome may vary depending on the specific server settings configured by your hosting provider. Different providers implement unique configurations, which can influence performance, functionality, and compatibility with your website or application. Always consult your hosting provider for detailed information..
2. Can I increase the cPanel upload size limit?
Yes, you can increase it through WHM, php.ini, .htaccess, or cPanel options. TThese changes will vary depending on the setup of your hosting environment. Factors such as the type of server, configurations, and hosting provider can all influence how adjustments are implemented..
3. Where is the upload limit in WHM?
Find it in the “MultiPHP INI Editor” under WHM. You can adjust settings such as post_max_size
to modify the maximum allowable size for data sent in a single request, ensuring it aligns with your application’s specific needs and requirements..
4. What is the ideal max upload limit for heavy files?
The ideal size depends on your file use. FIf you’re dealing with large or heavy files, it’s a good idea to set the upload limit to at least 50MB or higher to ensure smooth and efficient file handling..
5. Why am I still seeing the upload limit error?
Incorrect configuration or server restrictions may be the issue. Make sure to carefully review and verify all related settings to ensure everything is configured correctly. Taking the time to double-check can help prevent potential issues and ensure a smooth and efficient process moving forward..
6. Can shared hosting plans modify upload size?
Some shared hosting plans allow size changes via cPanel options. Make sure to review your provider’s policies thoroughly to ensure you understand all the terms, conditions, and guidelines. This can help you avoid any confusion and ensure you’re fully informed about your provider’s services and requirements..
7. How do php.ini changes affect upload size?
Adjusting upload_max_filesize
in php.ini immediately updates the limit. This configuration file is responsible for managing the rules and settings that control how PHP handles file uploads, ensuring proper limits, permissions, and functionality for a seamless upload process..
8. Is .htaccess used for upload size settings?
Yes, add commands like php_value upload_max_filesize
to .htaccess to increase limits.
9. Why is post_max_size
important in cPanel?
post_max_size
defines the maximum data sent via POST, which affects uploads. Make sure the file meets or exceeds the required file size limit to ensure successful upload or processing without encountering any issues related to size restrictions or compatibility problems.
10. Can plugins change cPanel file limits?
Yes, plugins like WP Upload Max can simplify the process for WordPress sites by adjusting limit rules directly.