Bruce Gust
asked on
Can't install a new feature because I'm running out of memory according to Composer...?
I'm trying to install the "filterable" feature of Kyslik and I keep getting a message that says you're out of memory.
I've changed things, as far as the Memory Limit on my php.ini file, but that doesn't seem to help.
Here's what I've got:
My php.ini file's location:
The directory as it appears on my local box:
When you click on "php.ini," it opens up the "phpForApache.ini" file.
At that point, I made this change:
...and still got the same error, as far as running out of memory (https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors).
I did restart my WAMP service, so...
...any ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As above...
1) When you run composer, you're using PHP CLI, not PHP HTTPS.
2) When you output phpinfo() this is HTTPS.
3) Thus what you're seeing in PHP HTTPS (phpinfo) may or may not have any relation to PHP CLI settings.
Note: This slight differentiation trips up many people... I only mention this as I once wasted many hours learning this hard lesson... :-)
1) When you run composer, you're using PHP CLI, not PHP HTTPS.
2) When you output phpinfo() this is HTTPS.
3) Thus what you're seeing in PHP HTTPS (phpinfo) may or may not have any relation to PHP CLI settings.
Note: This slight differentiation trips up many people... I only mention this as I once wasted many hours learning this hard lesson... :-)
ASKER
...and here's the message I get...
Thing is, although I'm getting the same "not enough memory" error, look at the last command I ran:
php-r "echo ini_get('memory_limit').PHP_EOL"
It says 128 MB. I've updated the php.ini file that's referenced here...
...as well as the file that's referenced in my info.php file:
I had to go through three different php.ini files before finally adjusting the correct one.
And it wasn't the file that was referenced on the <?php phpinfo()?> dynamic. I had to run a command on the Terminal to see what file was being referenced.
Taking notes...
Thanks!
Still not out of the dark, though...
https://www.experts-exchange.com/questions/29223380/What-do-these-errors-mean-and-how-can-I-fix-it.html