Running “composer require” on Dreamhost shared hosting

Submitted by Darren Oh on

composer require is the command to add packages to a composer project. Dreamhost shared hosting kills this command for using too much memory. To install new packages on Dreamhost shared hosting,

  1. copy the project to another machine,
  2. run composer require on that machine,
  3. copy the composer.lock file back to Dreamhost shared hosting, and
  4. run composer install on Dreamhost.

Thanks to srosato on the Dreamhost forums.

Tags