Updated: 28 September 2026 · Applies to: DirectAdmin with CloudLinux PHP Selector
memory_limit sets how much memory a PHP script may use.
Steps
- Log in to DirectAdmin (usually
https://your-server:2222; the address is in your welcome email). - Open Select PHP Version (CloudLinux PHP Selector), usually found under Extra Features.
- Open the Options tab and set
memory_limit, for example256M.
Note: The value cannot exceed your hosting plan's memory limit.