I got a problem, I tried to install a new package to my Laravel 4 project.
But when I run php composer.phar update
I get this:
Loading composer
Fix for AWS ec2 Ubuntu Server Php Memory Value Upgrade For Magento 2.3.X
Error : Updating dependencies (including require-dev) Killed for
PHP value update may locate under '/etc/php/7.2/fpm/php.ini' depend on your server and PHP fpm X.XX version
Using Seed command 'change as your server requires' on my case >> /etc/php/7.2/fpm/php.ini
memory limit type as "3.5G" or "3500MB" Php 7.2.X
sudo sed -i "s/memory_limit = .*/memory_limit = 3.5G/" /etc/php/7.2/fpm/php.ini
Php 7.3.X
sudo sed -i "s/memory_limit = .*/memory_limit = 3.5G/" /etc/php/7.3/fpm/php.ini
Test if applied on 'free -h' command
free -h
Install extension via Composer
go to your Magento 2 installation directory
cd /var/www/html/
with 'superuser' privileges
sudo su
Start installation
composer require XXXXXX/XXXXXXX
Enable Module s
php bin/magento module:enable XXXXXX/XXXXXXX
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Restart
sudo reboot
Enjioy