How to increase memory limit in php or composer - Magesan

How to increase memory limit in php or composer

How to increase memory limit in php or composer

Memory limit issue can be raised often. And without solving it you can’t process further. You must have to solve this.

Memory limit issue can be raised while installing large amount of software, extension and moreover.

We have two scenarios where we find memory limit issue,

  1. While installing Magento2, It throws memory limit issue during installation.
  2. While installing some extension using composer at that time this issue can put you in trouble.

Following are the solutions :-

You can directly set in your php.ini file

memory_limit = 512M

Or, when installing extension in magento 2 using composer,

php -dmemory_limit=-1 -dmax_execution_time=0 /usr/bin/composer require twilio/sdk
php -d memory_limit=-1 composer.phar require aws/aws-sdk-php
php -dmemory_limit=-1 bin/magento setup:di:compile

Try, and let us know if this works for you or not. We will try to solve your issue if this method is not working.

18 thoughts on “How to increase memory limit in php or composer

  • sepatu safety
    09/08/2021 at 9:11 PM

    thank you for sharing the news sir, it’s very comfortable to read the writings here, I feel more insight hopefully always given health and success always..

  • shaycase
    14/08/2021 at 8:28 PM

    Wow! Finally I got a blog from where I be able to really take helpful information concerning my
    study and knowledge.

  • PeterAsync
    19/09/2021 at 9:34 AM

    Nice blog. Keep good working friend.

  • jasa pembuatan company profile
    26/09/2021 at 2:24 PM

    Wow, superb blog layout!

  • Kiatielp
    06/11/2021 at 2:41 PM

    Good to learn.

  • Paultielp
    06/11/2021 at 6:30 PM

    Good.

  • Marktielp
    06/11/2021 at 7:39 PM

    Great article.

  • Teotielp
    06/11/2021 at 9:50 PM

    This is the good example of how we can increase memory limit using composer.

  • Yontielp
    07/11/2021 at 2:15 AM

    Super.

  • Wimtielp
    07/11/2021 at 2:38 AM

    Good.

  • Marytielp
    07/11/2021 at 6:45 AM

    Nice.

  • Judytielp
    07/11/2021 at 1:35 PM

    Super.

  • Teotielp
    08/11/2021 at 2:35 AM

    Great.

  • Jasontielp
    08/11/2021 at 4:39 AM

    Nice.

  • Eyetielp
    08/11/2021 at 4:59 AM

    Great.

  • Paultielp
    08/11/2021 at 2:37 PM

    Good Article.

  • wordpress popular posts
    12/10/2023 at 4:50 AM

    Woah! I’m really enjoying the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between superb usability and visual appearance.
    I must say that you’ve done a excellent job with this.
    Additionally, the blog loads very quick for me on Firefox.
    Outstanding Blog!

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>