Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Change PHP settings in your hosting control panel first. In cPanel, open Software → MultiPHP INI Editor, select the WordPress domain, edit the directive, and click Apply. In Plesk, open the domain’s PHP Settings page. If your host exposes neither tool, use only the file-based override it documents—typically a domain-level php.ini, permitted .htaccess directives, or WordPress constants in wp-config.php. Then verify the effective value in WordPress before retrying the failed operation.

Identify the setting and the site that are actually running

Do not start by changing a random value in wp-config.php. First identify the exact symptom, the active PHP version, and the document root for the affected WordPress installation. A host can run several domains, PHP versions, and configuration scopes on one account.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • “Allowed memory size exhausted” or an editor/import failing: investigate memory_limit and WordPress’s memory constants.
  • “The uploaded file exceeds the upload_max_filesize directive in php.ini”: check upload_max_filesize, post_max_size, and memory_limit together.
  • A request times out: check max_execution_time; for slow or large uploads also check max_input_time.
  • A value appears unchanged after saving: confirm that you edited the right domain, document root, PHP version, and configuration layer.

Record the current values before editing. If the host lets you select a PHP version per domain, note that version because each version can use a different configuration scope. Some providers require the change to be repeated after a PHP-version switch.

What the main PHP directives control

Directive or constant What it controls When to change it Important qualification
memory_limit The maximum memory PHP may allocate for one request. Memory exhaustion, large imports, complex page-building or administrative tasks. WordPress can request more memory at runtime, but the server can refuse a request above this PHP limit.
WP_MEMORY_LIMIT The amount of memory WordPress requests for front-end rendering. When front-end requests need more memory and the server permits the requested value. WordPress documents a default of 40 MB for standard installations and 64 MB for Multisite.
WP_MAX_MEMORY_LIMIT The memory WordPress requests for back-end administration. Dashboard operations, updates, media processing, imports and other administrator requests. WordPress documents a default of 256 MB. It remains subject to the server’s PHP limit.
upload_max_filesize The largest single file PHP will accept in an upload. Individual media files, theme or plugin ZIP files, and import files are rejected as too large. This applies to each file, not the total request.
post_max_size The maximum size of the complete HTTP POST request. Uploads or forms containing multiple files or substantial form data. It must be at least as large as upload_max_filesize.
max_execution_time How long a PHP script may execute. A legitimate long-running import, backup, update or conversion is timing out. Raising it does not increase upload size and can tie up shared-host resources.
max_input_time How long PHP allows for receiving input. Large or slow uploads that fail while data is still being received. It is separate from the time PHP spends executing the script.

For upload-related errors, keep the limits internally consistent: memory_limit ≥ post_max_size ≥ upload_max_filesize. For example, setting a 128 MB upload limit while post_max_size is 64 MB still produces a failure, because the complete request cannot be that large.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Change a setting in cPanel

Use MultiPHP INI Editor

  1. Sign in to cPanel for the hosting account that contains the WordPress site.
  2. Open Software → MultiPHP INI Editor.
  3. Select the affected domain. Use the domain’s actual WordPress document root rather than another parked or addon domain.
  4. Choose the available configuration mode. Basic Mode exposes common options; Editor Mode exposes more of the PHP configuration.
  5. Locate only the directive related to the problem, such as memory_limit, upload_max_filesize, post_max_size, max_execution_time or max_input_time.
  6. Enter the value using the unit accepted by the interface, such as 256M or 2G. Keep the value within the host’s allowed range.
  7. Click Apply at the bottom of the page.
  8. Verify the effective value in WordPress Site Health or the diagnostic supplied by your host, then repeat the operation that failed.

The hosting provider can disable MultiPHP INI Editor or restrict individual directives. If the editor is missing, blank, or refuses a value, that is a hosting policy rather than a WordPress error. Ask support whether the domain can receive a higher limit and whether the change applies to the selected PHP version.

Upload limits in cPanel

When the error names upload_max_filesize, change all three related limits deliberately. Set upload_max_filesize to at least the size of the largest file, set post_max_size higher than that value to leave room for the request envelope and additional form data, and ensure memory_limit is no lower than post_max_size. A cPanel upload procedure reports a 2 MB default maximum upload size and documents values up to 2 GB in that procedure; your provider may impose a lower account-level cap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change a setting in Plesk

  1. Sign in to Plesk and select Websites & Domains.
  2. Open the affected domain.
  3. Choose PHP Settings.
  4. Find the directive in the PHP settings list and enter the required value. If Plesk shows separate common and additional settings areas, use the field corresponding to the directive you need.
  5. Save the page with Apply or OK, depending on the Plesk version and service-provider skin.
  6. Check the effective value from WordPress Site Health or the provider’s diagnostic tool.

Plesk may run PHP through PHP-FPM or another handler. The interface normally applies the change for you, but a provider can lock settings or require a service reload. If a saved value immediately reverts, contact the host and include the domain, PHP version, directive, requested value and error message.

If the panel has no PHP editor

Use only the override method your host explicitly permits. A file that works on one server can be ignored or cause a 500 error on another.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Domain-level php.ini

Some hosts let you create or edit a php.ini file in the domain’s document root. A typical file contains lines such as:

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 72M
max_execution_time = 120
max_input_time = 120

Use the host’s required filename and location. PHP-FPM or a host-managed configuration may read a different file, and some providers ignore per-directory files entirely. After saving, allow the host’s stated reload or cache interval, then verify the value instead of assuming that the file was loaded.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Permitted .htaccess directives

Apache configurations sometimes allow PHP values in .htaccess, for example:

php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 72M

Do not add these lines unless the host says that this PHP handler supports them. On a server using PHP-FPM, an unsupported php_value directive can produce an internal-server error. Remove the lines through the file manager or SFTP if the site becomes unavailable, then use the supported panel or ask support.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

WordPress constants in wp-config.php

WordPress can request memory for front-end and back-end requests. Add the constants before the line that says /* That's all, stop editing! Happy publishing. */:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

The documented defaults are 40 MB for WP_MEMORY_LIMIT on a standard installation, 64 MB for Multisite, and 256 MB for WP_MAX_MEMORY_LIMIT. These constants express WordPress’s request; they cannot force a higher server limit when PHP configuration prevents runtime changes. They also do not replace upload_max_filesize or post_max_size, so they will not by themselves fix an upload-size error.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Back up wp-config.php before editing, preserve its quotes and semicolons, and avoid defining the same constant twice. A syntax error in this file can take the entire site offline.

Verify that the new value is effective

  1. In WordPress, open Tools → Site Health → Info and expand the Server section. Review the PHP version and the values exposed there.
  2. Check the host’s diagnostic page if Site Health does not display the directive you changed.
  3. Confirm that the displayed domain and PHP version match the site you edited.
  4. Retry the exact upload, import, update or administrative action that failed.

A value shown by WordPress is more useful than the value you typed into a file because it confirms which configuration PHP actually loaded. If the old value remains, clear any host-provided configuration cache only according to the provider’s instructions and check for a higher-priority server setting.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why a change appears not to work

The server cap is lower than your request

Shared hosting commonly applies server-level caps. A domain editor may display a maximum, silently clamp a larger number, or reject it. WordPress cannot override that ceiling. Ask support for the highest permitted value and whether a plan or server change is required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You changed the wrong PHP version or domain

Changing PHP versions can select a different configuration scope. Reopen the panel, select the active domain, confirm the PHP version shown for that domain, and make the change in that scope. Repeat the edit per version when the provider requires it.

A home-directory or domain php.ini was removed

In cPanel, deleting the domain-level or home-directory php.ini resets the associated settings to defaults. Restore the file only with the syntax and location documented by the provider, then verify every value again.

The limits are inconsistent

An upload still fails when post_max_size is below upload_max_filesize, even if the individual-file limit looks large. Check the complete relationship memory_limit ≥ post_max_size ≥ upload_max_filesize. Also consider max_input_time when a slow connection cannot finish sending a large request.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

The wrong problem is being solved

Increasing max_execution_time will not fix a file-size rejection, and increasing memory will not make an undersized POST request acceptable. Match the directive to the message and change the smallest necessary value. Excessively high limits can let a broken plugin consume resources or degrade a shared server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When to contact hosting support

Contact the provider when MultiPHP INI Editor or Plesk PHP Settings is unavailable, the desired value is locked, a supported file override has no effect, or the site returns a server error after the change. Send support:

  • the domain and WordPress document root;
  • the active PHP version and handler, if shown;
  • the exact directive and requested value;
  • the complete WordPress or PHP error message;
  • the effective value currently reported by Site Health or the host diagnostic; and
  • whether the issue affects one domain or every site in the account.

This information lets the provider distinguish a per-domain override from a server-wide cap and tell you whether PHP-FPM or another service must be reloaded. Do not request an unlimited value: specify the largest file, import or task you need to support and ask what limit the hosting environment safely permits.

A practical change checklist

  • Identify the failing operation and the directive associated with it.
  • Confirm the active PHP version, domain and document root.
  • Record the current effective values.
  • Use cPanel’s Software → MultiPHP INI Editor or Plesk’s PHP Settings first.
  • For uploads, set memory_limit ≥ post_max_size ≥ upload_max_filesize.
  • Use max_execution_time only for genuine execution timeouts and max_input_time for input-receiving delays.
  • If using files, follow the host’s exact rules for php.ini, .htaccess or wp-config.php.
  • Verify the effective value in WordPress or the host diagnostic.
  • Retry the original operation and revert an unnecessary increase.

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.