1.Log in to your
DirectAdmin hosting panel.

2.Scroll down navigate to
EXTRA FEATURES -> Select PHP version.
3.Navigate to
Options.
4.You will find
memory_limit. Click the button next to it to open a dropdown menu.

5.Select the memory limit you want to set.