InMotion Hosting Support Center

composer.phar SSH memory limit

Category: Tools

designstudioo
Asked:
2016-03-15 11:54 pm EST

Hits: 792
hi
i tried of trying to increase memory limitation i used php.ini i used every possible methods put still on ssh the memory limit is 512
and because of that every time i use the php composer.phar command i get this error
Fatal error: Out of memory (allocated 148897792) (tried to allocate 32 bytes) in phar:
i build new system in laravel and this problem hanging me up !!

thank you

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

You must login before you can submit an answer.

OTHER ANSWERS

0

Arn
Staff
42,973 Points
2016-03-16 11:54 am EST
Hello DesignStudioo,

Sorry for the problem with the composer.phar memory limit that you're seeing when trying to use composer.phar. Make sure to review this article about memory limit errors with Composer . I am assuming that you meant "512M" for the memory value, not just "512'. Also, just to be sure, make your php.ini file recursive so that it applies to all of the folders of your installation.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.

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

After making all of the changs suggested in your post (i.e. changing the php.ini memory_limit to -1 and making php.ini recursive), it still seems that the memory is being reported as 512M. I'm using this command in ssh to display the memory allocated: php -r "echo ini_get('memory_limit').PHP_EOL;" and it consistently says 512M regardless of what I put in the php.ini file.
What else can I do?
schmidtl4
6 Points
2017-08-21 9:48 am EST
I recommend creating a phpinfo page in the same folder as your php.ini file. This will allow you to easily view the allocated memory.

Thank you,
John-Paul
John-Paul
31,633 Points
Staff
2017-08-21 9:54 am EST
@John-Paul Thanks for your suggestion. That doesn't seem to be the problem. Phpinfo() reports the right memory limit. Composer, however does not. Since composer is "included" in the cpanel hosting, I have no idea how it was installed or what it is reading. No matter what value I give to memory_limit in php.ini, that value is properly reported in phpinfo(), but composer still reports 512M.
schmidtl4
6 Points
2017-08-21 8:13 pm EST
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: support@InMotionHosting.com
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!