Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bhattaraisuman's avatar

While running the composer this killed ! What is the best solution??

I here post the problem which I faced while installing composer in ubuntu 18.04 through ssh.

Loading composer repositories with package information Updating dependencies (including require-dev) Killed

0 likes
1 reply
Braunson's avatar

The killed message ususally means the composer process consumed too much memory. So you can either add more memory to the system when possible (unless your on a shared host) or try this:

  1. Run composer update on your local copy (either your physical or virtual machine), commit it to git (with the composer.lock file
  2. Push the code to your server your having the issue on
  3. Run composer install on the same server that killed your previous process.

Composer install will read from your lock file rather then trying to gather the latest version of each file.

Please or to participate in this conversation.