How to Increase Upload Limit in cPanel
To increase the upload limit in cPanel, such as for uploading large files through PHP scripts (like WordPress or file upload forms), you need to adjust PHP configuration settings. Here’s how to do it:
Common Settings to Change:
To increase the upload size, you should adjust these PHP settings:
upload_max_filesizepost_max_sizememory_limit(optional but related)
Method 1: Using MultiPHP INI Editor (Most Recommended on Shared Hosting)
Log in to your cPanel.
Scroll to the Software section and click MultiPHP INI Editor.
Under Basic Mode, select your domain.
Set the following:
upload_max_filesize =
128M(or higher)post_max_size =
128M(or higher)memory_limit =
256M(or higher, optional)
Click Apply.
Make sure
post_max_sizeis equal to or greater thanupload_max_filesize.
Method 2: Edit php.ini File (If Your Hosting Allows It)
In File Manager, go to your domain’s root (e.g.,
public_html).Open or create a file named
php.ini.Add or update:
Save the file.
Method 3: Edit .htaccess File
If you can’t use php.ini, try .htaccess:
Go to
public_htmland open.htaccess.Add:
Save changes.
This method may throw a 500 error if your server doesn’t support
php_valuein.htaccess.
Method 4: Modify wp-config.php (For WordPress)
Open
wp-config.php.Add: