Free tools Windows power users keep installed
One-click scans. No signup required.
The safest way to change a PHP setting is in your hosting control panel. In cPanel, open Software → MultiPHP INI Editor, select the domain, edit the directive, and click Apply. In Plesk, open the domain’s PHP Settings page and save the change. If your host exposes neither tool, use only the file-based method it permits—usually a domain-level php.ini, selected .htaccess directives, or WordPress constants in wp-config.php—or ask support to change the server-level value.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
Before editing anything, identify the active PHP version, the exact domain running WordPress, and the setting connected to the symptom. A larger upload, for example, normally requires coordinated changes to upload_max_filesize, post_max_size, and sometimes memory_limit; changing an unrelated value or only one of those limits will not solve the error.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
WordPress Multisite Administration | $34.38 | Buy on Amazon |
| 2 |
|
Mon Site WordPress – Volume 2 – Administration & Utilisation (French Edition) | $9.90 | Buy on Amazon |
| 3 |
|
WordPress 24-Hour Trainer | $3.95 | Buy on Amazon |
| 4 |
|
Teacher Record Book | $4.89 | Buy on Amazon |
As an Amazon Associate I earn from qualifying purchases.
What you need to identify first
PHP settings are applied to a particular PHP configuration scope. The same domain can use a different configuration after a PHP-version change, and some hosts keep separate settings for each site or subscription. Gather these details before making an edit:
- Domain: confirm the exact domain and document root containing the WordPress installation.
- Active PHP version: check the hosting panel and WordPress Site Health. Do not edit a configuration belonging to an older version.
- Symptom and directive: match the error to the setting that controls it instead of raising every limit.
- Access level: determine whether you have a per-domain PHP editor, file access, or only support access.
Changing the PHP version can select a different configuration scope. If your host requires settings to be repeated per version, reapply them after switching versions and verify the effective values again.
#1 Best Overall
Change a setting in cPanel
Open the domain editor
- Sign in to cPanel for the account that hosts the site.
- Open Software → MultiPHP INI Editor.
- Select the WordPress domain from the domain list. If the installation is in a subdirectory, select the domain whose document root contains that installation.
- Use Basic Mode for common directives or Editor Mode when you need options that are not shown in the basic form.
The hosting provider can disable MultiPHP INI Editor. If the feature or a directive is missing, that is a hosting-policy limitation rather than a WordPress error.
Edit only the directive you need
Find the directive associated with the failure, enter a value with an appropriate unit such as M for megabytes or s for seconds, and leave unrelated settings unchanged. cPanel’s documented workflow is to make the adjustment—for example, to memory_limit—and click Apply at the bottom of the page.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitches- Enter the new value in the field or editor.
- Review the other related limits before saving.
- Click Apply.
- Wait for the panel to confirm the change, then verify the effective value in WordPress Site Health or a host diagnostic.
Deleting the domain-level or home-directory php.ini can reset settings to the host’s defaults. Do not remove that file as a troubleshooting shortcut unless you have recorded the existing values and understand the reset.
Change a setting in Plesk
- Sign in to Plesk.
- Open Websites & Domains and select the WordPress domain.
- Open the domain’s PHP Settings page. The exact label can vary by Plesk configuration and hosting provider.
- Locate the directive, enter the required value, and save or apply the page.
- Recheck the value from WordPress Site Health, then repeat the operation that failed.
Plesk may expose only the directives and maximum values allowed by the provider. A field that is locked, absent, or rejected indicates that the host must make the change at a higher configuration level.
Use a file-based method when the panel is unavailable
Hosts differ in which override files they permit. WordPress documentation identifies a domain-level php.ini, permitted .htaccess directives, and constants in wp-config.php as possible routes, but a host can disable any of them. Check the host’s own instructions before adding a file or directive.
Domain-level php.ini
If the host supports it, create or edit the php.ini in the domain’s document root. An illustrative set of directives looks like this:
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 80M
max_execution_time = 300
max_input_time = 300
These values are examples of syntax, not a promise that your account permits them. Replace them with values appropriate to the task and the limits stated by your provider. Some hosts require the file in a particular directory or require PHP-FPM, a service reload, or a delay before the new values become active.
.htaccess overrides
Apache-based accounts sometimes allow PHP directives in .htaccess, while other configurations reject them. A permitted syntax can look like:
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 80M
Use this only when your host explicitly supports PHP values in .htaccess. On a server that disallows them, the result can be an HTTP 500 error rather than a changed limit. If that happens, remove the added lines through the file manager or SFTP, restore the site, and ask the host which method is supported.
WordPress constants in wp-config.php
WordPress can request memory for its front end and administration area through constants placed in wp-config.php, before the line that says WordPress editing should stop. For example:
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '256M');
WP_MEMORY_LIMIT controls the amount of memory WordPress requests for front-end rendering. WordPress documentation gives a default of 40 MB for a standard installation and 64 MB for Multisite. WP_MAX_MEMORY_LIMIT controls the back end and has a documented default of 256 MB.
These constants are requests made by WordPress; they do not override a lower server-level memory_limit. If the PHP configuration prevents runtime changes, adding a larger constant will not increase the amount PHP can allocate. A host must raise the server limit when the account’s ceiling is lower.
Which PHP setting controls which problem?
| Directive or constant | What it controls | Important relationship or qualification |
|---|---|---|
memory_limit |
Maximum memory PHP may allocate for one request. | PHP can refuse a higher WordPress request when the server configuration imposes a lower ceiling. |
WP_MEMORY_LIMIT |
Memory WordPress requests while rendering the front end. | WordPress documents defaults of 40 MB for standard installs and 64 MB for Multisite. |
WP_MAX_MEMORY_LIMIT |
Memory WordPress requests for administration tasks. | WordPress documents a default of 256 MB. |
upload_max_filesize |
Maximum size of one uploaded file. | This is the limit named in “uploaded file exceeds the upload_max_filesize directive in php.ini” errors. |
post_max_size |
Maximum size of the complete HTTP POST request. | It must be at least as large as upload_max_filesize. |
max_execution_time |
Maximum time a PHP script may execute. | Raise it only when a genuinely long-running request times out. |
max_input_time |
Time PHP allows for receiving input. | It is distinct from execution time and can affect large uploads. |
Fix the “uploaded file exceeds upload_max_filesize” error
Changing only upload_max_filesize often leaves the upload blocked by another limit. Keep the limits internally consistent:
memory_limit ≥ post_max_size ≥ upload_max_filesize
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Rank #3
- Open the active domain in cPanel’s MultiPHP INI Editor or Plesk’s PHP Settings page.
- Set
upload_max_filesizeabove the size of the individual file you need to upload. - Set
post_max_sizeat least as high as the upload limit, leaving room for the rest of the HTTP request. - Check
memory_limit. Large imports, image processing, and archive extraction may need more memory than the upload itself. - Check
max_input_timeif the connection spends a long time sending the file. - Save the settings, verify the effective values, and retry the upload.
A cPanel upload guide reports a default maximum upload size of 2 MB for cPanel and describes values up to 2 GB in that procedure. Those figures describe that documented cPanel procedure; your provider can impose lower account-level caps.
Increase the WordPress memory limit safely
Memory errors can occur during plugin updates, theme operations, media processing, backups, or imports. First determine whether the failure is front end, administration, or a PHP process outside WordPress.
When the WordPress constant is enough
If the server’s memory_limit is already high enough and the application is requesting less, adding or adjusting WP_MEMORY_LIMIT or WP_MAX_MEMORY_LIMIT may let WordPress request more memory. Keep the constants in wp-config.php and verify the result in Site Health.
When the host must change it
If Site Health continues to show a lower PHP memory limit, or the constant has no effect, the server configuration is enforcing the ceiling. Shared hosting commonly applies server-level caps. Contact the provider and include the domain, active PHP version, current effective value, requested value, and the operation that fails.
Verify the effective value instead of trusting the file
A saved file or green confirmation in a panel does not prove that the running PHP process uses the value you entered. Check WordPress’s Site Health information or a diagnostic supplied by your host. Confirm the exact values for:
memory_limitupload_max_filesizepost_max_sizemax_execution_timemax_input_time
Then repeat the failed operation with a test file or task that stays within the new limits. Remove temporary diagnostic files after checking them, particularly if they reveal server details.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshoot a change that did not work
The setting reverted after saving
The provider may enforce a maximum, regenerate configuration files, or require edits in a different scope. Confirm the active PHP version and domain, then ask support whether the account uses a separate PHP-FPM pool or server-level policy.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Rank #4
- Keep track of everything from attendance to test scores
- Spiral bound
- Measures 8-1/2" x 11"
The panel has no editor
MultiPHP INI Editor can be disabled by the provider. Look for the host’s documented php.ini location or permitted .htaccess method. If neither is available, support must make the change.
WordPress still reports the old value
Recheck the domain and PHP version, then verify the file’s location and syntax. A directive in the wrong document root can affect another site or no site at all. PHP-FPM or another persistent process may also need the provider to reload its configuration.
The site returns HTTP 500 after an .htaccess edit
Undo the newly added php_value lines immediately. The server likely disallows those overrides. Restore the previous file, confirm the site loads, and use the panel, a supported php.ini, or hosting support instead.
The upload limit increased but the upload still fails
Compare all three values: upload_max_filesize, post_max_size, and memory_limit. Also check max_input_time for slow transfers and application-specific limits imposed by the plugin handling the upload.
A long task times out
Only after confirming that the task is legitimate and necessary should you examine max_execution_time. For a large upload, distinguish the time spent receiving input—controlled by max_input_time—from the time spent processing it. Raising execution time cannot fix a smaller upload-size limit.
Questions to ask before choosing or changing hosting
If PHP settings are a recurring requirement for a WordPress site, compare hosting plans using concrete controls rather than a generic promise of flexibility:
- Does the account expose a per-domain PHP editor?
- Can you select the PHP version for each domain?
- What maximum values are allowed for memory, uploads, POST data, and execution time?
- Are domain-level
php.inior.htaccessoverrides permitted? - Does changing a value require a PHP-FPM or server restart?
- How does support handle requests above shared-host caps?
Ask for the current limits and the exact control-panel path in writing. A host that exposes the editor but silently caps values still requires support for larger applications or imports.
Quick Recap
A safe change checklist
- Record the current effective values.
- Identify the active PHP version and WordPress domain.
- Choose the smallest directive change that addresses the symptom.
- Keep
memory_limit ≥ post_max_size ≥ upload_max_filesizefor upload work. - Save through the hosting panel whenever possible.
- If using files, make a backup and use only methods the host permits.
- Verify the running PHP values in Site Health or a host diagnostic.
- Retry the failed operation and remove temporary diagnostic files.
- Contact support when the value is locked, capped, or unchanged after verification.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.




