-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php memory limit not changing #1281
Comments
It appears that the php memory setting used in my boa system is /opt/etc/php56/lib/php.ini fpm-pool-common.conf skips that file? |
BOA is using separate settings and INI files for PHP CLI and FPM. Furthermore, every Octopus instance has these limits enforced via account level PHP ini file in /home/o1.web/.drush/. The same is valid for your SFTP/SSH account o1.ftp. They are auto-configured depending on the RAM available. But you mentioned composer, so you are probably looking to increase CLI limits only? Please be more specific and confirm which exactly account you are using where you wish to change these limits, so we could confirm where you can adjust them. |
I´m using account o1.ftp with composer commands. Composer is the only reason why I am forced to increase php memory limit. My server uses 16GB RAM. |
For global system PHP-CLI you should edit the correct PHP version file located in one of these paths:
For Note that you will need to make it editable first (as root) with command:
You may need to edit all these INI files, since composer may invoke global PHP default versions and not your Aegir PHP-CLI version. |
I am facing a similar problem. I attempted to increase the memory both at the global level (
|
I found now the right place to do this setting for composer to work. It is under This should probably be added to the documentation, as I guess anyone using composer to update drupal 8 sites on a host with a limited amount of RAM will face this problem. |
Hi, not sure why composer is requiring that on a production server, maybe you are doing But, It is always recommended and a better practice to run something like I hope that helps both of you to have a better workflow and a healthy server. |
You could add a file composer_nolimit and add this command to it. Make it an executable and whitelisted to be accessible by o1.ftp. Then instead of calling composer you can call composer_nolimit, or you can increase the limit there. Hope this helps. |
Hi @Corvalan I've written a solution here: |
I need to increase the php memory limit because composer complains it needs more.
in
/opt/etc/fpm/fpm-pool-common.conf
I have set php_admin_value[memory_limit] to 2Gthen i reloaded
service php56-fpm reload
which is the only fpm service running as far as i see. I even rebooted the server.Still the php memory limit shows as 1028M
when i use php -r "echo ini_get('memory_limit').PHP_EOL;"
What could i have missed here?
The text was updated successfully, but these errors were encountered: