Search
 
SCRIPT & CODE EXAMPLE
 

PHP

cpanel composer update kill

The "Killed" message usually means your process consumed too much memory, so you may simply need to add more memory to your system if possible. At the time of writing this answer, I've had to increase my virtual machine's memory to at least 768MB in order to get composer update to work in some situations.

However, if you're doing this on a live server, you shouldn't be using composer update at all. What you should instead do is:

Run composer update in a local environment (such as directly on your physical laptop/desktop, or a docker container/VM running on your laptop/desktop) where memory limitations shouldn't be as severe.
Upload or git push the composer.lock file.
Run composer install on the live server.
composer install will then read from the .lock file, fetching the exact same versions every time rather than finding the latest versions of every package. This makes your app less likely to break, and composer uses less memory.
Comment

PREVIOUS NEXT
Code Example
Php :: compare key and one array 
Php :: laravel call a static function 
Php :: sweet alert confirm box laravel 
Php :: get city name from latitude and longitude in php using geocode api 
Php :: php inner join array 
Php :: mail laravel 
Php :: str_contains — Determine if a string contains a given substring 
Php :: laravel, if -get() array is not emtpy 
Php :: laravel project composer [ErrorException] Undefined index: name 
Php :: what is route namespace in laravel 
Php :: global constant variable in laravel 
Php :: laravel relationship 
Php :: if else php 
Php :: laravel upload image 
Php :: stored procedure laravel 
Php :: laravel available router methods 
Php :: open phpstorm from terminal 
Php :: double in php 
Php :: PHP Custom Time Ago Function 
Php :: acf field without spaces 
Php :: download file from s3 using laravel 
Php :: php normalize whitespace characters 
Php :: what is laravel framework 
Php :: Include Custom Post Types Categories to the main query 
Php :: wordpress get post type from url 
Php :: Laravel appends child when referencing it in attribute function 
Php :: php generator for mysql 
Php :: PHP catch eval output 
Php :: wp rest api remove _links 
Php :: enable gutenberg for template 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =