Increasing PHP memory limit

Expertise level: Medium

By default most PHP configurations are limited to 32 MB of memory. This helps ensure that a poorly written script cannot cause the server to crash due to out-of-memory issues. However, it is possible to increase the amount of memory that PHP can use, even to 100% of the server's resources.

Start by logging into WHM as root.

Open the "PHP Configuration Editor" menu.

 phpconf.jpg

 Locate the "memory_limit" entry.

memory_limit.jpg

 In the text area to the right, enter the desired amount of memory. You can also enter "-1" for unlimited memory.

memory_text.jpg

 When you are finished modifying the amount of memory, go to the very bottom of the page, and click on "Save".

save.jpg

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk