How to Increase the PHP Memory Limit

July 19, 2024 / How-to Guide

This guide explains how to increase the PHP memory limit. The memory_limit is a PHP setting that determines the maximum amount of memory a script can use. It should be set to a value at least as large as post_max_size. Though direct changes to php.ini are not allowed on our servers, you can adjust PHP configuration settings through cPanel.

Follow the simple steps:

  1. Log in to cPanel.
  2. Select Software and click on MultiPHP INI Editor.
    software>multiphp INI editor
  3. In the Basic Mode, select the Domain whose memory limit you wish to increase.
    basic mode
  4. Find the memory_limit option and increase the value in the text box.
  5. Click Apply.
    php directive

Important note: Only change the ‘memory_limit’ when necessary. For access, it is best to keep permissions as strict and minimal as possible.

This way, you can increase the PHP memory limit. If you require additional assistance, feel free to contact our support staff.

Spread the love