Economicalhost · Knowledge Base
Knowledge Base › PHP & Performance › How to Increase the PHP memory_limit
PHP & Performance

How to Increase the PHP memory_limit

A low memory_limit causes "Allowed memory size exhausted" errors. Raising it through the INI editor resolves most of these in seconds.

Step-by-step

  1. Open Software → MultiPHP INI Editor and choose your domain.
  2. Find the memory_limit field in Basic Mode.
  3. Set it to 256M for most sites, or 512M for large stores and heavy plugins.
  4. Click Apply.
  5. For WordPress specifically, also add the WP_MEMORY_LIMIT line to wp-config.php — see WordPress memory limit.
  6. Reload the failing page to confirm the error is gone.

💡 Good to know

  • Do not set memory absurdly high to mask a problem — a runaway plugin needs fixing, not feeding.
  • Your plan has an overall ceiling; persistent high usage is a sign to discuss an upgrade.
  • Check the error log to confirm the error was memory-related.