What is the best way to give a local php (together with drush for a drupal 8) more memory. Its not necessary for the web cgi/fast-cgi process itself, only for local admin tasks. My solution was to copy your php.ini file from /usr/local/lib/php72/php.ini, set memory_limit and add an alias in my .bash_profile:
is there an better solution? asked 23 Oct '18, 11:04 marcel |
You can also try the
Similarly, you can put that in an alias in your answered 24 Oct '18, 15:39 iliasr ♦♦ |
The solution is not 100% working for me. in our enviroment the drush process still does not honor the custom php / or custom memory limit and it complains still that it needs more than 128M. I belive that maybe the drush process itslef starts another php process which does not use the "bash settings", AFAIK. The solution was to configure drush itself for more memory e.g. ini_set('memory_limit', '512M'); https://support.acquia.com/hc/en-us/articles/360005311613-Increasing-the-memory-limit-for-Drush. answered 15 Nov '18, 16:48 Lotek |
Seems like a reasonable solution to me.