Questions tagged [composer]

installing and using the PHP dependency management tool

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Issues when installing Laravel using composer

Using Ubuntu 20.04 and PHP 8 When executing composer install for Laravel Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? ...
user avatar
0 votes
0 answers
48 views

problem with composer install and php version when deploying web app

I need to deploy a web application written with Laravel and vue.js. The server is on AWS with ubuntu 18.04. Initially the development was done on a windows machine with Xampp v7.4.10, Control Panel v3....
user avatar
0 votes
0 answers
119 views

VirtualBox ubuntu/focal64 - Error: Command not found

Description: I ran into a problem with a command and I am not sure how to handle the situation. All setup commands ran successfully, so the file structure is in place to install the template command ./...
user avatar
0 votes
1 answer
902 views

"Composer update failed: "/usr/local/bin/composer" could not be written." after installing Composer using the terminal

I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error: [Composer\Downloader\FilesystemException] ...
user avatar
  • 1
0 votes
0 answers
69 views

Samba Problem to write/delete files with composer (think SAMBA BUG)

I installed ubuntu 20.04 server and samba. I upgraded the system and everything worked normally. After this I try to use composer from windows to write to the shared folder on the server. When I try ...
user avatar
  • 1
0 votes
0 answers
647 views

curl error 61: Unrecognized content encoding type. libcurl understands identity content encodings

I'm having problems with using Composer. composer diagnose gives this result: Checking platform settings: OK Checking git settings: OK Checking http connectivity to packagist: FAIL [Composer\...
user avatar
0 votes
0 answers
171 views

Not able to run the docker-compose up command

I am trying to run the docker-compose command. But, suddenly it got stop working. I am new in ubuntu. But, I am definitely sure that the following error is not from the docker-compose tool. pct110@...
user avatar
  • 101
0 votes
0 answers
100 views

Laravel dependencies does not update in XAMPP

The case: I want to install Laravel on my computer (info: Linux 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux) When I ran composer create-project ...
user avatar
0 votes
1 answer
407 views

php composer errors NoSslException and TransportException. Unable to find the wrapper "https". Cannot install phpspreadsheet. Ubuntu20.04

(SOLVED BELOW) I am stuck for a few days now trying to effectively use composer to install phpspreadsheet on a php project I am working on for a client. Since phpspreadsheet requires php >= 7.2 I ...
user avatar
1 vote
0 answers
338 views

how to upgrade Composer to v2?

I am trying to upgrade composer to Composer2 (from Composer1). richb201@richb201-XPS-13-9370:/opt/docker-substantiator2/app/vendor/sendpulse-rest-api-php-master/src$ composer selfupdate Updating to ...
user avatar
  • 11
1 vote
1 answer
3k views

Ubuntu 18.04: installing composer: Could not write to file "/usr/local/bin/composer"

I'm trying to install composer using a tutorial, on Ubuntu 18.04. I'm having the following error message: $ sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer [sudo] password ...
user avatar
  • 131
0 votes
1 answer
339 views

Composer Installation Problem

Cannot create cache directory /home/rukon/.cache/composer/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache Cannot create cache directory /home/rukon/.cache/...
user avatar
12 votes
4 answers
2k views

Why does this script running su never seem to terminate if I change user inside the script?

I have a really simple bash script with 5 commands running under the root user. If I run commands manually one by one everything works - no problem. But as I run it as my-deploy.sh file via command ...
user avatar
  • 479
0 votes
1 answer
115 views

How to make laravel run automatically each time I open a new terminal?

I came from windows to Ubuntu and tried to install laravel following link https://laravel.com/docs/5.0 I ended with the installer 1.4.... I don't recall which one so I decided to use composer global ...
user avatar
2 votes
2 answers
7k views

How to update composer 1.6.3 to latest version 2.0.4?

I have tried to update my existing composer version in ubuntu. and I try to check the version but ubuntu say package not found. Then I again try sudo apt install composer to install composer. Now when ...
user avatar
  • 123
0 votes
2 answers
157 views

How to install composer when I get allowed memory error

Im trying to install composer on my production machine but keep getting many errors. Im following the tutorial on this site https://linuxize.com/post/how-to-install-and-use-composer-on-ubuntu-18-04/ ...
user avatar
0 votes
2 answers
12k views

nginx is now 404 Not Found

I had nginx before, but now it's 404 on web. Maybe something restarting, but I don't know for sure. 404 Not Found nginx/1.18.0 (Ubuntu) I have searched for various errors nginx. sudo nginx -t is ok. /...
user avatar
  • 1
-1 votes
1 answer
2k views

When i do composer update some extension errors are showing

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. ...
user avatar
1 vote
1 answer
255 views

Can't make requirements in composer

I'm trying to use GuzzleHttp, but I have 'Class 'GuzzleHttp\Client' not found' all the time. I googled, and everyone says to make composer require guzzlehttp/guzzle in the project folder. But when i ...
user avatar
  • 11
0 votes
1 answer
709 views

Bad credentials Magento extension manager

I have tried to login into magento marketplace through the Extension Manager by using the Public and Private key which I copied from my account in the marketplace. But I always get BAD CREDENTIALS. I ...
user avatar
0 votes
2 answers
4k views

Bus Error Core Dumped given in terminal

i tried running the composer -v command and got the error - "Bus Error(core dumped)" in the terminal. Please is there any suggestion. Saw a place that said to run sudo apt update, tried that but it ...
user avatar
  • 1
3 votes
0 answers
2k views

Composer fails to run (installed with apt)

The composer package from the apt repositories fails with every command (composer install, composer update, composer list, composer --version) Error message PHP Warning: require(Composer/autoload....
user avatar
  • 966
0 votes
1 answer
1k views

Why composer isnt updating

I am trying to update my yii2 project with the composer but whenever I am giving an update command it is showing the following errors. our requirements could not be resolved to an installable set of ...
user avatar
0 votes
0 answers
553 views

How to Install Composer and Laravel on ubuntu 16.04

Warning: require(/opt/lampp/htdocs/blog/public/../vendor/autoload.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/blog/public/index.php on line 24 Fatal error: require(): ...
user avatar
1 vote
0 answers
480 views

.composer directory created on home

I'm using composer and while I installed global package it will point to /home/.config/composer directory (which is normal). While this morning, suddenly in my home there's a directory named .composer ...
user avatar
0 votes
0 answers
177 views

How do I install composer? [duplicate]

I want to install composer for using laravel in Ubuntu 17.10, when I tried it gives me error. I tried those methods; https://getcomposer.org/download/ https://www.digitalocean.com/community/...
user avatar
2 votes
2 answers
17k views

How do I fix this error installing Laravel?

When I run this command sudo composer global require "laravel/installer" it produces this output: Changed current directory to /home/zoheir/.composer Do not run Composer as root/super user! See https:...
user avatar
1 vote
2 answers
3k views

Your requirements could not be resolved to an installable set of packages

So I'm trying to get calcinai/xero-php installed using Composer but am getting this error in specific. Your requirements could not be resolved to an installable set of packages. Problem 1 - ...
user avatar
0 votes
1 answer
892 views

Can't Access getcomposer.org Ubuntu 17.04

I Can't Access https://getcomposer.org (Through URL and Curl). When I tried to access through URL its not loading the page. And When I curl the same It shows Connection Timed Out. curl: (7) Failed to ...
user avatar
  • 101
0 votes
1 answer
1k views

Unable to install Laravel in ubuntu

When i run composer in terminal, Cannot create cache directory /home/varun/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache Cannot create cache ...
user avatar
  • 63
1 vote
1 answer
3k views

Not able to install composer

curl -sS https://getcomposer.org/installer | sudo php -- --install- dir=/usr/local/bin --filename=composer When I run the above command in terminal I got this this response: Some settings on your ...
user avatar
  • 11
1 vote
1 answer
7k views

Unable to download composer

I am getting this sort of error while downloading composer. php composer-setup.php All settings correct for using Composer PHP Warning: file_put_contents(/home/vasu/.composer/keys.dev.pub): failed ...
user avatar
1 vote
1 answer
14k views

How to Install Laravel 5.3 in Ubuntu 14.04 Server

As what I have stated from the title, I need to install the newest laravel 5.3 in 14.04 server, the composer cannot run because it need PHP 5.6 but in my own server they have 5.5. Either, I have to ...
user avatar
15 votes
3 answers
38k views

Why isn't Composer updated?

I'm using Ubuntu 16.04 LTS amd64. I have installed LAMP (php5.6, apache2, mysql) and Composer. I downloaded my laravel project from github. I would like to update Composer to start the local server ...
user avatar
3 votes
2 answers
2k views

Can't permanently export PATH variable with custom path

I've installed composer and the laravel installer which is now located unter ~/.config/composer/vendor/bin. I want to use laravel directly as a command from anywhere, so I tried to add the directory ...
user avatar
0 votes
1 answer
338 views

Trying and failing to install Drush

I've got a fresh install of Ubuntu and I'm trying (and failing to install Drush). I've download LAMP and that all works fine. Then I installed Composer and that works fine. But when I try to install ...
user avatar
  • 219
0 votes
2 answers
4k views

Installed phpunit using composer but still says to install using apt-get

I have installed composer globally on my Ubuntu12.04 machine. I can confirm it because it is in the ~/.composer/vendor directory and is included in global composer.json. My problem is whenever I try ...
user avatar
  • 119
0 votes
3 answers
20k views

Installing composer globally permission denied

I'm following the steps in get composer.org and I want to install composer globally and give me this error. mv: cannot move ‘composer.phar’ to ‘/usr/local/bin/composer’: Permission denied So what ...
user avatar