PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, December 31, 2021

[FIXED] composer update "process killed"

 December 31, 2021     composer-php, dreamhost, process     No comments   

Issue

I tried to execute:

composer.phar update

And received:

Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 71 bytes) in phar:///home/xxxxxxx/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 123

The xxxxxxx is the user.

And then I tried to execute:

php -d memory_limit=256M ~/bin/composer.phar update

And:

php -d memory_limit=512M ~/bin/composer.phar update

Then I received this:

Yikes! One of your processes (php, pid 14331) was just killed for excessive resource usage. Please contact DreamHost Support for details.**

How can I execute composer update on Dreamhost shared host? Can someone who had experienced this situation could help me please?

The context: Laravel 4


Solution

Run the composer update command on your development machine, which generates the composer.lock file for you. Upload that composer.lock file and on the shared host just run composer install. This will use a lot less memory!



Answered By - Burak Erdem
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing