How To Increase PHP Memory Limit In cPanel?
By menaga | September 9, 2021
PHP Memory Limit sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts from eating up all available memory on a server. Apart from this, there are different reasons to increase the PHP memory limit. Also, the default PHP memory limit varies based on the server’s configuration.
How To Increase PHP Memory Limit In cPanel?
- Login to your cPanel Account.
- Search for “MultiPHP INI Editor” in the search bar. Click on it.
- MultiPHP INI Editor page will get displayed.
- In that, you can find two types of mode Basic Mode and Editor Mode.
- Select the Basic Mode and Select the domain name in “Configure PHP INI basic settings”.
- You can see the list of PHP directives. In that, you can find the memory_limit directive. In this field increase the memory limit as you required.
Note: The memory limit should be within your disk space allocated to your website. And also, the memory limit should be always greater than post_max_size and upload_max_filesize.
- Now click on “Apply” to save the changes.