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.
Locate the "memory_limit" entry.
In the text area to the right, enter the desired amount of memory. You can also enter "-1" for unlimited memory.
When you are finished modifying the amount of memory, go to the very bottom of the page, and click on "Save".