Results 1 to 2 of 2

Thread: Magento2 custom memory-limit

  1. #1
    Join Date
    Sep 2014
    Posts
    41

    Magento2 custom memory-limit

    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?

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    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
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •