Managed WordPress Hosting built different 💪

pressypress
PHP & caching

How to raise the PHP memory limit and upload size

  1. Open your Pressy and go to PHP in the sidebar.
  2. Stay on the Version and limits tab.
  3. Find Quick limits.
  4. Press the value you want on the limit you need.

The change applies within a few seconds. Reload the page in WordPress that was failing.

Which limit to change

The message you sawRaise thisTry
"Allowed memory size exhausted"memory_limit256M
"The uploaded file exceeds..."upload_max_filesize and post_max_size64M
"Maximum execution time exceeded"max_execution_time120
An import or backup stops half-waymax_execution_time, then memory_limit300, then 256M

Raise upload_max_filesize and post_max_size together. The first is the biggest file, the second is the biggest submission that carries it. Raising only one means WordPress accepts the file and then rejects the form around it.

Set post_max_size the same as or slightly larger than upload_max_filesize.

Going back

Press Back to default on any limit to return it to the server default.

Setting anything else

These four write ordinary php.ini overrides, and you can see them on the php.ini overrides tab. Anything else PHP accepts can be added there by hand as a directive and a value.

If raising it does not help

A limit that has to keep climbing is a symptom rather than a cause. A plugin leaking memory will exhaust 512M as happily as 128M.

Read the Error log tab: the entry names the file, and if it is under wp-content/plugins/ you have found it. See fixing a 500.

Didn’t solve it?

Write to us with your Pressy’s address and what you were doing when it went wrong. Answered by the people who built it.

Last updated