01 / cPanel guidesUpdated 7 Nov 2026

How to increase the PHP upload limit in cPanel

PHP refuses files larger than its upload limit, which is only 2 MB by default. This guide shows which PHP settings control uploads, how to raise them in cPanel’s MultiPHP INI Editor, which file cPanel writes the values to, and why phpMyAdmin and Webmail have limits of their own.

Short answer

To increase the PHP upload limit in cPanel, open Software » MultiPHP INI Editor, stay on Basic Mode and choose the domain, or Home Directory for every site. Raise upload_max_filesize, set post_max_size and memory_limit higher still, for example 64M, 128M and 256M, and click Apply. phpMyAdmin’s import limit is separate, and only your host can raise it.

Where
cPanel » Software » MultiPHP INI Editor
You need
A cPanel login with the MultiPHP INI Editor feature enabled
Applies to
cPanel & WHM 134 (LTS) to 138, Jupiter theme
PHP defaults
upload_max_filesize 2M, post_max_size 8M

Which settings limit uploads

Several PHP directives decide how large an upload can be and how long it may take. A file must fit under all of them, so raising only upload_max_filesize is often not enough.

DirectiveWhat it limitsDefault
upload_max_filesizeThe size of one uploaded file2M
post_max_sizeThe whole form submission, including every file in it8M
memory_limitThe memory one PHP script may useSet by cPanel at install, based on the server’s memory
max_execution_timeThe seconds a script may run before PHP stops it30
max_input_varsThe number of form fields per request; large menus and settings pages need more1000

Set the three size values in order: post_max_size larger than upload_max_filesize, and memory_limit larger than post_max_size. cPanel’s documentation recommends exactly this order. For files up to 64 MB, 64M, 128M and 256M work.

Raise the limit in MultiPHP INI Editor

  1. Log in to cPanel.
  2. In the Software section, click MultiPHP INI Editor.
  3. On the Basic Mode tab, open the Configure PHP INI basic settings menu and pick the domain. Pick Home Directory instead to change every website on the account.
  4. Set upload_max_filesize, for example to 64M. Write M for megabytes; a bare number is read as bytes.
  5. Set post_max_size higher, for example 128M, and memory_limit higher again, for example 256M.
  6. If large imports or uploads time out, raise max_execution_time, for example to 300.
  7. Click Apply.

NoteBasic Mode only lists the directives your PHP version supports. To set a directive that is not listed, use the Editor Mode tab, which edits the file as text and saves with Save.

cPanel’s documentation recommends keeping its default values where you can. Raise the upload limits only as far as your site needs, because each request may then use more of the server’s memory.

Which file cPanel writes

When you click Apply in MultiPHP INI Editor, cPanel saves the values to php.ini, .user.ini and .htaccess in the folder you picked, each where that file supports the directive. Which of those files PHP actually reads depends on the PHP handler your host uses.

PHP handlerFile PHP reads
PHP-FPM (cPanel’s default).user.ini
CGI.user.ini
suPHPphp.ini in the folder of the script
LSAPIThe php_value lines in .htaccess
DSOThe php_value lines in .htaccess

PHP rereads .user.ini every 5 minutes by default (user_ini.cache_ttl is 300), so a new value can take up to 5 minutes to show on a PHP-FPM site.

NoteDo not copy php_value lines into .htaccess by hand on a PHP-FPM site. Apache does not understand them there, and the site returns “500 Internal Server Error”.

Check the new values

MultiPHP INI Editor shows what is saved in the file, not what PHP is using. To see the live values, create a file named info.php in the domain’s document root containing <?php phpinfo();, open it in a browser and search the page for upload_max_filesize.

In the phpinfo() page, the Local Value column is the value for this site and Master Value is the server’s default. Delete info.php when you are done, because the page shows details about the server.

In WordPress, Tools » Site Health » Info lists Upload max filesize, PHP post max size and PHP memory limit under Server, so you can check without a test file.

Upload limits in WordPress

WordPress shows the PHP limit as “Maximum upload file size” on Media » Add New Media File (Media » Add New in older versions). The figure is the smaller of upload_max_filesize and post_max_size, so WordPress shows the new limit as soon as PHP uses the new values.

A theme or plugin upload that is too large can fail with “The link you followed has expired.” instead of a size error. In WordPress that message usually means the upload was larger than post_max_size.

On a WordPress multisite network, Network Admin » Settings has its own Max upload file size, in kilobytes (1,500 KB by default). That network setting applies on top of the PHP limit.

phpMyAdmin and Webmail limits

phpMyAdmin and Roundcube Webmail in cPanel do not run on your website’s PHP. They use cPanel’s own internal PHP, so values set in MultiPHP INI Editor do not change the import limit in phpMyAdmin or the attachment limit in Webmail.

Only the host can raise the limits of cPanel’s internal PHP, in WHM » Server Configuration » Tweak Settings on the PHP tab. These settings apply to the whole server:

Tweak Settings optionDefaultAllowed range
cPanel PHP max upload size50 MB50 to 2,047 MB
cPanel PHP max POST size55 MB55 to 2,047 MB
cPanel PHP memory limit128 MB128 to 16,384 MB
cPanel PHP max execution time90 seconds90 to 500 seconds

For a database export larger than the host will allow in phpMyAdmin, ask the host to import it from the command line, or split the export into smaller files.

Common problems

Uploads fail with “The uploaded file exceeds the upload_max_filesize directive in php.ini.”
The file is larger than the upload_max_filesize PHP uses for this site. Raise it for the right domain in MultiPHP INI Editor, keep post_max_size above it, and confirm the new value with phpinfo().
WordPress still says “Maximum upload file size: 2 MB.”
PHP has not picked up the new values yet, or they went to another folder. Wait 5 minutes for .user.ini to be reread, check the value with phpinfo(), and make sure you edited the domain WordPress runs on. On CloudLinux servers that use Select PHP Version, set the limits in that screen’s options instead.
phpMyAdmin’s Import tab still shows “Max: 50MiB”.
phpMyAdmin uses cPanel’s internal PHP, which MultiPHP INI Editor does not change. Ask your host to raise cPanel PHP max upload size and cPanel PHP max POST size in WHM » Server Configuration » Tweak Settings, or to import the file for you.
MultiPHP INI Editor shows the new value, but phpinfo() shows the old one.
The PHP handler reads a different file from the one you expect, or the host has fixed the value in the server’s PHP-FPM pool settings, which a site’s own file cannot override. Check Server API and Loaded Configuration File in phpinfo() against the handler table above, and ask your host if the value still does not change.
Large uploads stop partway or time out.
The upload takes longer than max_execution_time allows, or a proxy in front of the site has its own size limit. Raise max_execution_time, and move very large files by FTP or File Manager instead of through the website.

Doing it from CTAServer

On CTAServer’s PHP screen, a site’s php.ini values can be changed the way cPanel’s MultiPHP INI Editor basic mode changes them, as the account’s user. The same basic directives can be set per PHP version for the whole server, as in WHM’s MultiPHP INI Editor.

  • The values you can set include upload_max_filesize, post_max_size, memory_limit, max_execution_time and max_input_vars.
  • Ready-made presets for WordPress, Joomla and three security levels show the changes before they are applied.
  • The WordPress preset sets at least memory_limit 256M, upload_max_filesize 64M, post_max_size 64M, max_execution_time 300 and max_input_vars 3000. The application presets only raise values; they never lower a value that is already higher.
  • Settings » Tweak settings in CTAServer reads and changes the WHM Tweak Settings values for cPanel’s own PHP, which phpMyAdmin and Roundcube use: upload limit 50 to 2047 MB, POST size 55 to 2047 MB, memory limit 128 to 16384 MB. CTAServer warns when the POST size is lower than the upload limit.
  • Those cPanel PHP values are server-wide. CTAServer cannot give one account a larger phpMyAdmin limit than the others, because cPanel has no per-account setting for it.

Frequently asked questions

What is the default upload limit in cPanel?

PHP’s own default is 2M for upload_max_filesize and 8M for post_max_size, and cPanel keeps those values unless your host changed them. phpMyAdmin and Webmail use cPanel’s internal PHP instead, where the default upload limit is 50 MB.

Which file sets the limit: php.ini, .user.ini or .htaccess?

It depends on the PHP handler. With PHP-FPM, cPanel’s default, and with CGI, PHP reads .user.ini; suPHP reads php.ini; DSO and LSAPI read php_value lines in .htaccess. MultiPHP INI Editor writes every file that supports the directive, so the right one is covered.

What upload settings should I use for WordPress?

For most WordPress sites, upload_max_filesize 64M, post_max_size 128M, memory_limit 256M, max_execution_time 300 and max_input_vars 3000 cover themes, plugins and media. Raise upload_max_filesize further only for larger files, and keep post_max_size above it.

Does the PHP upload limit apply to File Manager and FTP?

No. The PHP limit applies to uploads through PHP scripts on your website, such as a WordPress media upload. FTP and cPanel’s File Manager do not use the website’s PHP settings, so they are the way to move files larger than the limit.

How do I raise the upload limit for every site on my account?

In Software » MultiPHP INI Editor, choose Home Directory instead of a domain in the Basic Mode menu, set the values and click Apply. cPanel’s documentation says this applies the change to all websites you manage. Check each site with phpinfo() afterwards.

How does a host raise the upload limit for the whole server?

In WHM » Software » MultiPHP INI Editor, the host picks a PHP version, sets upload_max_filesize and post_max_size in Basic Mode and saves. cPanel writes the values to that version’s main php.ini, so every site on that version uses them unless its own files set something else.

02 / Get started7 days free · No card needed

Connect your first server today.

Free for 7 days, no card needed. Create your account, add your first server with an API token or an SSH key, and the panel starts filling in a few minutes later.

No setup fee · Cancel anytime · EU-hosted