Questions tagged [composer]
installing and using the PHP dependency management tool
39
questions
0
votes
1
answer
145
views
I installed php7.4 version in ubuntu and after that I am enabling mbstring in ubuntu but it keeps showing me error
In picture it is clear that installed version of php is 7.4 and when I enable mbstring extension with
sudo phpenmod mbstring
it keeps showing me the error. I have attached screenshot for it.
1
vote
0
answers
586
views
pdo_mysql.so problem when try to install composer
I want to install composer by apt install or composer-setup.php.
After composer made the setup, and says composer -V I am getting this error message.
Warning: PHP Startup: Unable to load dynamic ...
0
votes
1
answer
27
views
Accidentally renamed a Composer file
I found some answers suggesting ways to discover original file name but those seem to be irrelevant here, I wonder if anyone recognizes the content below and can suggest the original file name.
...
2
votes
2
answers
6k
views
Force install php 7 packages on Ubuntu 22.04 LTS
While I know that php 8 is the default PHP choice on Ubuntu 22.04, I still use php 7 for my project. When installing packages related to PHP, the dependancies always pick php-common, php-*, etc.. and ...
0
votes
1
answer
2k
views
Composer require PHP iconv OR mbstring extension
I've installed the composer via "sudo apt install composer" which was installed successfully but when I try to run any composer command Example: "composer -v" its output this ...
0
votes
2
answers
3k
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]?
...
0
votes
1
answer
1k
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....
1
vote
2
answers
8k
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]
...
0
votes
0
answers
356
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@...
0
votes
1
answer
927
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 ...
1
vote
0
answers
446
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 ...
1
vote
1
answer
5k
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 ...
0
votes
1
answer
675
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/...
13
votes
4
answers
3k
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
...
0
votes
1
answer
313
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 ...
2
votes
2
answers
9k
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 ...
0
votes
2
answers
252
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/ ...
0
votes
2
answers
23k
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.
/...
-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.
...
1
vote
1
answer
352
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 ...
0
votes
1
answer
742
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 ...
0
votes
2
answers
5k
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 ...
3
votes
0
answers
3k
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....
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 ...
0
votes
0
answers
564
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(): ...
1
vote
0
answers
537
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 ...
0
votes
0
answers
180
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/...
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:...
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
- ...
0
votes
1
answer
989
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 ...
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 ...
1
vote
1
answer
5k
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 ...
1
vote
1
answer
8k
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
363
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 ...
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 ...
0
votes
3
answers
22k
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 ...