If WordPress says "The uploaded file exceeds the upload_max_filesize directive", a plugin runs out of memory, or an import times out, you need to change your PHP settings. This guide shows how to change PHP settings like memory_limit and upload_max_filesize for your Instant Access Internet Services site in cPanel with the MultiPHP INI Editor, and which values to use.
How to change PHP settings in cPanel
- Log in to cPanel and go to Software > MultiPHP INI Editor.
- Stay on the Basic Mode tab.
- Under Configure PHP INI basic settings, choose your domain from the menu. The list of settings and their current values appears.
- Change the values you need. On/off settings have a toggle; sizes and times have a text box (for example type
256Mfor memory_limit). - Click Apply at the bottom of the page.
- Reload your website and check the change has taken effect.
Choosing your domain changes the settings for that website. The editor saves them in your site's folder (in php.ini, .user.ini and, where supported, .htaccess), so don't delete those files unless you want the defaults back. If you have a site in a subdomain, choose it separately.
The PHP settings people change most
| Setting | What it controls | Default / typical value |
|---|---|---|
memory_limit | The most memory one PHP script can use. Too low causes "Allowed memory size exhausted" errors. | Default 128M; 256M suits most WordPress and WooCommerce sites |
upload_max_filesize | The largest single file that can be uploaded through your website. | Default 64M; raise to 128M or 256M if needed |
post_max_size | The largest total form submission, including all uploaded files. Must be the same as or larger than upload_max_filesize. | Same as or a bit above upload_max_filesize |
max_execution_time | How many seconds a script may run before it's stopped. | 60 to 300 |
max_input_time | How long a script may spend receiving uploaded data. | Same as max_execution_time |
max_input_vars | How many form fields can be sent at once. Too low breaks large menus and page-builder saves. | 3000 to 5000 |
display_errors | Whether PHP errors are shown on the page to visitors. | Off on a live site |
The exact list in Basic Mode depends on the PHP version your site uses.
How to increase the maximum upload size
To raise the upload limit (for example in the WordPress Media Library or when importing a theme or backup), change both of these, or the smaller one still wins:
- Set
upload_max_filesizeto the size you need, for example128M. - Set
post_max_sizeto the same or a larger value, for example128M. - For large imports, also raise
max_execution_timeandmax_input_timeto300. - Click Apply.
In WordPress, go to Media > Add New Media File and check the "Maximum upload file size" shown on that page.
How to increase the PHP memory limit
Set memory_limit to 256M (or 512M for large shops or page builders) and click Apply. A higher PHP memory limit can't give a script more memory than your account's overall limit shown in Metrics > Resource Usage, so very high values don't help and may hide a badly behaved plugin. For WordPress, the plugin or theme's own documentation usually tells you the value it needs.
Editor Mode (advanced)
The Editor Mode tab lets you edit the php.ini file for a domain as plain text, for settings that aren't in Basic Mode. Only use it if you know the exact directive you need, and make one change at a time. A typing mistake can stop your site loading; if that happens, undo the change or open a ticket.
Troubleshooting
I changed a setting but nothing happened
- Check you chose the right domain in Configure PHP INI basic settings and clicked Apply.
- Look in your site's folder for
php_valuelines in.htaccessor an oldphp.inicopied from a previous host or plugin with conflicting values. - WordPress plugins and
wp-config.phpcan set their own limits (for exampleWP_MEMORY_LIMIT). - Allow a minute or two for the change to take effect. If it still doesn't apply, open a ticket.
The setting I need isn't in the list
Try Editor Mode, or open a ticket and tell us which setting and value you need, and why.
How do I check my current PHP settings?
The Basic Mode page shows the current values for the domain you choose. In WordPress, you can also go to Tools > Site Health > Info and expand Server.
Related guides
- How to Change Your PHP Version in cPanel
- How to Fix the WordPress White Screen and 500 Errors
- cPanel Resource Usage Explained: CPU, Memory and Entry Process Limits
- How to Check Your Website Error Log and Recent Visitors
- How to Import and Export a Database with phpMyAdmin
Still stuck? Open a support ticket and the Instant Access Internet Services team will help.
