How to change PHP memory_limit value?

Created:

2017-08-09 19:31:15 UTC

Modified:

2017-08-16 15:42:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change PHP memory_limit value?

Applicable to:

  • Plesk for Linux

Question

How to change PHP memory_limit value?

Answer

To change the memory_limit for one domain, go to Plesk > Subscriptions > example.com > PHP Settings > memory_limit and type the new value, e.g. 1024M.

1111.PNG

In addition, it is possible to set custom memory limit over set the required value at Plesk > Domains > example.com > PHP settings > Additional directives :

memory_limit = 2048M

To change the memory_limit globally, go to Plesk > Tools & Settings > PHP Settings > PHP handler > php.ini > find memory_limit and type the new value, e.g. 1024M .

22222.PNG

Note: the letters is values are K for kilobytes, M for megabytes, and G for gigabytes.

Have more questions? Submit a request
Please sign in to leave a comment.