Skip to content
ONDI

← All terms

Settings

memory_limit / post_max_size

Settings that decide how much memory PHP can use and how large a request it can accept. PHP's official announcement suggested adjusting them as a temporary measure.

memory_limit is the upper limit on how much memory a single PHP program can use at once, and post_max_size is the upper limit on how much data PHP will accept at once from a form or an upload. In a restaurant, think of them as the size of the counter one cook may use and the maximum thickness of a stack of order slips taken in at one time. During PHP2Shell, PHP's official announcement suggested adjusting these values as a temporary measure.

Watch out Set the values too low and large photo uploads may fail, or an admin screen with many plugins may freeze or show errors. They also interact with upload_max_filesize, which limits the size of a single file, so check that one as well. After changing them, try saving a post and uploading a photo yourself. This is only a temporary measure, so updating PHP to a fixed version still has to be done separately.

Source: PHP Manual, “Description of core php.ini directives” · KISA, “Security response guidelines for businesses on the PHP vulnerability (PHP2Shell)” (checked 2026-10-26)

See also

A typo here, a clumsy button there.

This site is still being polished. Spot something? Tell us — we’ll fix it and send a small thank-you gift.

🎁 Thank-you gift