I want to set the memory_limit to more than 1024M

mzartosht

New member
Joined
May 5, 2025
Messages
2
Hello, I want to set the memory_limit to more than 1024M. From what I understand, I need to change the settings through Custom HTTPD Configurations, but I haven’t been able to do it successfully. I would appreciate your help.

web server= apache
php1_mode=fastcgi
 
Find where is your php.ini then edit it, search for

Code:
memory_limit = xxxx

and edit it to a higher value, like 2048M. Save, exit, then restart apache.

- https://docs.directadmin.com/webservices/php/php-options.html

If you want to change grades n DirectAdmin interface, then

1. copy templates/php_settings.json to templates/custom/php_settings.json
2. edit templates/custom/php_settings.json. Save, exit, then restart DirectAdmin.

JSON:
                "memory_limit" : {
                        "default" : "128M",
                        "type" : "list",
                        "values" : [
                                "64M",
                                "128M",
                                "192M",
                                "256M",
                                "368M",
                                "512M",
                                "768M",
                                "1024M",
                                "2048M",
                        ]
                },
 
Back
Top