Magento2 custom memory-limit

webunity

Verified User
Joined
Sep 23, 2014
Messages
49
If i want to tweak the memory limit for a Mangento 2 install, without increasing the max memory limit for my entire server, i think i should use this guide; https://help.directadmin.com/item.php?id=622

Question is (since some Magento 2 commands you run on CLI) would a [PATH=/home/...] be sufficient to capture both the PHP CLI and the PHP-FPM requests coming from the webserver?
 
Hello,

According to http://php.net/manual/en/ini.sections.php#ini.per-path (the link can be found on the page https://help.directadmin.com/item.php?id=622) these sections are used only in CGI/FastCGI mode and they can not set extension and zend_extension directives.


By default Directadmin creates

/usr/local/phpXX/lib/php.conf.d/50-webapps.ini


with the following content:

Code:
[PATH=/var/www/html]
session.save_path=/var/www/tmp
upload_tmp_dir=/var/www/tmp
disable_functions=exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname


see:

Code:
# cd / && php -i | grep session.save_path
session.save_path => no value => no value

Code:
# cd /var/www/html && php -i | grep session.save_path
session.save_path => no value => no value
 
Back
Top