How to Increase PHP memory_limit in DirectAdmin
Increasing the PHP memory_limit
allows scripts to use more memory, which can improve performance for resource-intensive tasks. Follow these steps to adjust the memory_limit
in DirectAdmin.
Step 1: Log in to DirectAdmin
- Log in to your DirectAdmin account.
Step 2: Go to PHP Settings
- In the main menu, under Account Manager, click PHP Settings.

Step 3: Select memory_limit
Option
- On the PHP Settings page, you’ll find a list of configuration options like
display_errors
,memory_limit
,post_max_size
, and more. - Select memory_limit from the dropdown to adjust this setting.
Step 4: Set the New Value
- In the value dropdown, choose the desired memory limit, such as 128M, 256M, or 512M.
- Click the Add button to apply the change.

Step 5: Confirmation
- A confirmation message will appear at the top of the page, confirming that the
memory_limit
has been successfully updated.

You’ve now increased the PHP memory_limit
in DirectAdmin, providing more memory for PHP processes as configured.
Was this article helpful?
YesNo