Composer Memory Limit

后端 未结 3 1094
清酒与你
清酒与你 2021-01-29 05:02

I installed composer global at a Webhosting-Server. Now I can call it via

composer

But if I want to install something I get a memory limit er

3条回答
  •  遇见更好的自我
    2021-01-29 05:13

    alias composer='php -d memory_limit=1024M -d suhosin.executor.include.whitelist=phar,http://,https:// /is/htdocs/xxxxxx_xxxxx/script/composer/composer.phar'
    

    Worked for me

    I use an alias for composer so I don't need to call the whole path if I want to use composer. But with this alias I am not able to call composer via "composer.phar". So I added the memory limit command to the alias function which worked for me.

提交回复
热议问题