If you’ve ever tried uploading a large file to your website and received an error like:
“The uploaded file exceeds the upload_max_filesize directive in php.ini”,
it means your hosting account has a lower file upload limit set in PHP.
This guide shows you how to increase the upload limit in cPanel easily — no coding knowledge required
Step 1: Log in to Your cPanel Account
-
Go to your cPanel login page.
-
Example:
https://yourdomain.com/cpanel
-
-
Enter your username and password to access your hosting dashboard.
Step 2: Locate the “Select PHP Version” or “MultiPHP INI Editor”
Depending on your hosting environment, you can manage PHP settings from either:
-
Select PHP Version (for CloudLinux environments), or
-
MultiPHP INI Editor (for general cPanel environments)
Step 3: Open the PHP Options or INI Editor
If using Select PHP Version:
-
Click on “Options” after selecting your current PHP version.
-
Scroll down to find
upload_max_filesize
.
If using MultiPHP INI Editor:
-
Choose your domain from the dropdown list.
-
You’ll see editable PHP directives including
upload_max_filesize
.
Step 4: Increase the upload_max_filesize
Value
-
Locate
upload_max_filesize
-
Change it from the default (e.g. 2M) to your preferred size (e.g. 64M or 128M)
-
Optionally, also adjust:
-
post_max_size
→ should be equal or larger thanupload_max_filesize
-
memory_limit
→ should be larger thanpost_max_size
-
Example:
Step 5: Save Changes
After modifying the values, click “Save” or “Apply”.
Changes take effect immediately.
Step 6: Verify the New Upload Limit
To confirm that the new upload limit is applied:
-
Create a new PHP file in your public_html directory named
info.php
-
Add this line inside:
-
Visit
https://yourdomain.com/info.php
in your browser. -
Search for upload_max_filesize — your new value should be visible.
Common Issues
-
Still showing old limits?
→ Try changing values in both Select PHP Version and MultiPHP INI Editor. -
Website still not accepting large uploads?
→ Check your CMS (e.g. WordPress) settings — some platforms have their own upload limit inside their dashboard.