Questions tagged [composer]
Composer is a dependency manager for PHP.
32 questions
1 vote
1 answer
379 views
gke autopilot cluster creation failure
I am trying to create GKE Autopilot cluster and the creation fails. I see just this error. "All cluster resources were brought up, but: 1 nodes out of 1 are unhealthy". Not sure if there are ...
0 votes
2 answers
348 views
Command that run fine... but give me an error when "piped" to grep, inside a docker RUN?
Sorry for the title, I really can't explain better. I'm learning shell programming. I'm trying to detect if Composer has a script named "post-install-cmd". To do that, one can call composer ...
0 votes
1 answer
5k views
How to properly setup composer within PHP Apache Docker Container
Content of my Dockerfile: FROM php:8.1-apache WORKDIR /var/www/html/ RUN pecl install xdebug \ && docker-php-ext-enable xdebug \ && a2enmod rewrite \ && docker-...
0 votes
1 answer
2k views
Sail up for a cloned laravel project does not work
I have Windows 10, WSL2, and Docker. I've cloned a repository from GitHub, and when I try to sail up, I get this message: /usr/bin/env: ‘sh\r’: No such file or directory. The following is from the ...
1 vote
0 answers
9k views
Composer telling me " PHP extension ext-gmp * but it is missing" when it shouldn't be
I'm new to Composer, so be gentle! I'm trying to install a script that uses Composer, but I get: Problem 1 - Root composer.json requires PHP extension ext-gmp * but it is missing from your ...
2 votes
1 answer
8k views
Add private GitHub repository "the right way" in dockerfile (w composer.json)
I'm trying to add my private GitHub repository, through the composer.json-file, while building a docker image. But I can't make it work no matter what I try. I want the most simple approach possible, ...
-1 votes
1 answer
2k views
How to set smtp_password in GCP Cloud Composer for configuring third-party SMTP services
I can use only G Suit SMTP mail server due to company security policy. I want to configuring 3rd-party SMTP service for using G Suit mail service but I can't set "smtp smtp_password" config ...
0 votes
2 answers
324 views
How to install zend framwork zend-soap on
I am trying to install a package using composer. It fails with the error message below. Problem 1 - zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is ...
1 vote
1 answer
1k views
Composer crashes
When I run composer update I get this error: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Question\Question::__construct() must be of the type string, array ...
0 votes
1 answer
455 views
How to point composer to the right PHP version?
I have several versions of PHP installed on my server, and I use FastCGI to select the one to use for a certain setup. I am trying to install PIMCore and it has a Composer project for that. I have ...
0 votes
1 answer
180 views
Gcloud repository - how to make a repo stable?
We're using our gcloud cloud repositories to store modules and themes for our project which we get with composer. But I can't find a way to make a repository labelled as "stable" for this purpose; I ...
0 votes
2 answers
3k views
Change in php.ini not reflecting PHP Memory_Limit Master Value
I am trying to install a composer package for AWS S3 integration and came across the Composer Out of Memory issue. Upon checking phpinfo() I could see the loaded php configuration file is /etc/php....
0 votes
1 answer
2k views
zend_mm_heap corrupted PHP Fatal error: Cannot redeclare composerRequire
We have a webserver where besides normal requests large files are being uploaded. Some requests (such as 1/10) are dropped. We than see following errors in the error log. ==> /var/log/apache2/...
1 vote
1 answer
3k views
Why is my Docker Symfony project with Composer consuming so much memory?
Description I'm deploying my symfony project in prod. It works fine when I simply run docker-compose up. However I'm getting an issue with my deploy script and try accessing the web page in my ...
3 votes
1 answer
733 views
OPcache cache same file for different users only once
Is there some way to make OPcache use a hash or target a specific directory on each domain to disable use_pwd so it won't cache the same packages over and over? By default OPcache appends the working ...
0 votes
2 answers
1k views
./composer.json is not readable when running on Synology NAS
I asked the same question a while ago on the stackoverflow site, with no results. As it clearly has something to do with configuration of our Synology NAS maybe the expertise of you guys here suits ...
1 vote
1 answer
108 views
Semantic MediaWiki require onoi/callback-container, but it can't be installed
I try to install the latest release of SemanticMediaWiki. When I run composer update, it returns the following: > ComposerHookHandler::onPreUpdate Loading composer repositories with package ...
1 vote
1 answer
2k views
AWS CodePipeline output file empty
To deploy my Laravel framework to Docker containers on AWS, I created a CodePipeline in AWS with three basic steps: 1) Get source from Github (Output artifact = MyApp) 2) Use AWS CodeBuild (...
1 vote
1 answer
176 views
Does the composer software have a command like python -m compileall ./
I want to use composer for a mediawiki root folder with multiple directories that need composer to install their dependencies with a command like composer -m installall ./ For example , if the root ...
1 vote
1 answer
1k views
Why does PHP Composer have CA certs in its installer file?
The developers of Composer have a script you can execute to install Composer on your system. It contains a slew of CA certs in the file. I am new to certificate security and am wondering what this ...
6 votes
1 answer
15k views
docker-compose exec composer as user
I have a docker-compose setup working perfect on my local machine for my symfony projects with nginx, php7-fpm and mysql. I often need to install new packages via composer, so I just deliver the ...
0 votes
0 answers
166 views
Commands in Dockerfile of a base image is not being run
I ran out of methods already, this is rather confusing. So, I have a docker container where I would like to "git clone" my php web application, and then run "composer install". From my understand, ...
0 votes
2 answers
3k views
Class 'Pusher' not found when installing koel
I'm trying to install 'koel' on my VPS (Debian Jessie). I followed this guide (as well as many other guides before) http://freedif.org/how-to-install-koel-an-opensource-music-streaming-app/ Did a npm ...
1 vote
1 answer
661 views
php wont run on command line
When trying to run the composer install script in the php official docker container (php:5.6-apache) the command line seems to just hang waiting for input the command I am trying to run is the ...
1 vote
0 answers
64 views
running composer from upstart
I am running Ubuntu 14.04. I am trying to make a service capable of deploying an application. The process is very simple: I have a node script listening on port 2133 for a POST request When this ...
0 votes
1 answer
172 views
Composer is having ssl issues with private repository on osx
there are many similar questions but nothing that helps my cas. We are using a custom self hosted composer repo, for internal libraries. It all worked perfectly fine untill we updated the SSL ...
1 vote
1 answer
10k views
Uncaught Error: Class 'Monolog\Logger' not found
I use PHP 7.0 on Apache 2.4.20 and Ubuntu 16.04 LTS. I have followed this guide to have upload functionality and would like to know what I can do to fix the following error that I receive: PHP Fatal ...
5 votes
1 answer
4k views
gitlab SSL configuration / certificate verification failed
I have my own gitlab server, now secured with an letsencrypt SSL certificate. Now, I want to publish some packages via packagist. But when I enter the git repository url in packagist, I got the ...
1 vote
1 answer
248 views
Centos 6 - Allow sudo composer self-update for user without password
I'm trying to allow my wheel group user to run sudo composer self-update without a prompt for a password for my deploy script. I have added the bottom line below to my /etc/sudoers file: ## Allows ...
1 vote
0 answers
123 views
Reducing inodes usage on vServer
On my Linux vServer the inodes are limited (maximum is 250k). I found that an Yii2 (PHP, MySQL, composer) installation requires quite a lot of inodes. The number of inodes is roughly the number of ...
0 votes
1 answer
1k views
Geotrust SSL certification issue
I have an issue with curl (Centos 6 env) does not recognize Geotrust intermediary certificate: * Trying 192.168.6.6... connected * Connected to composer.graymatter.co.uk (192.168.6.6) port 443 (#0) ...
0 votes
1 answer
3k views
How to change the default timeout configuration file for composer [closed]
I've been searching all over the internet and I can't seem to find any help as to where my composer's configuration file is saved to. Basically what I'm trying to do is change the ...