centoscomposer-phpcyber-panel

CentOs won't increase memory limits


I have VPS using CentOs 7 with CyberPanel and when I try to use composer install I get this error

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435456 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435456 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.

Screenshots

one

two

Any idea?


Solution

  • Solved

    I used this command and my composer start to run

    which composer
    

    To find my composer path, and then

    php -d memory_limit=-1 /user/bin/composer update