InMotion Hosting Support Center

mmap() failed: [12] Cannot allocate memory.

2017-11-06 4:31 am EST

Hits: 7,647
I have Laravel 5.5 hosted in Inmotion and am trying to use the composer update/composer require command via SSH. When I run any of these command, I get an error: mmap() failed: [12] Cannot allocate memory.
Following a support post in this forum, I've changed PHP versions to 7.1 in both Cpanel and CLI but error is still the same

You must login before you can ask a follow up question.

You must login before you can submit an answer.



42,973 Points
2017-11-06 8:27 am EST
Hello Ascentnepal,

Sorry for the problems with Laravel 5.5 and the Cannot allocate memory error. I researched this issue and I'm finding several possible solutions. Check out these forum posts: Problems with memory using Composer and PHP Composer update “cannot allocate memory” error (using Laravel 4). The second post lists Laravel 4, but may still provide a viable answer using the creation of a swap file. If either of these options do not help, then I recommend posting in the Laravel community site for additional assistance. They would be the best option to help you resolve your memory allocation issues. The issue is very broad and requires that you isolate the cause in order to determine how to find its resolution.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!