Questions tagged [composer]

Composer is a dependency manager for PHP.

Filter by
Sorted by
Tagged with
0 votes
2 answers
90 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 ...
gremo's user avatar
  • 339
0 votes
0 answers
25 views

Error downloading and installing composer

I don't really know where to begin with this. I'm trying to install composer on shared hosting. I've followed the instructions here, logged in by SSH and run: curl -sS https://getcomposer.org/...
Jodes's user avatar
  • 101
0 votes
1 answer
3k 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-...
DevelJoe's user avatar
  • 187
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 ...
r j's user avatar
  • 1
1 vote
0 answers
6k 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 ...
Andrew Newby's user avatar
  • 1,124
1 vote
1 answer
5k 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, ...
Oakleaf's user avatar
  • 111
-1 votes
1 answer
1k 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 ...
Seonghwan Lee's user avatar
0 votes
2 answers
261 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 ...
user1794918's user avatar
1 vote
1 answer
923 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 ...
Boba Fit's user avatar
  • 131
0 votes
1 answer
334 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 ...
Bart Friederichs's user avatar
0 votes
1 answer
160 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 ...
Asitis's user avatar
  • 97
0 votes
1 answer
2k 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....
Hari's user avatar
  • 1
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/...
Yarik Dot's user avatar
  • 1,583
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 ...
kemicofa ghost's user avatar
3 votes
1 answer
545 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 ...
ButterMilkMan's user avatar
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 ...
Laurent's user avatar
  • 135
1 vote
1 answer
79 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 ...
Сергей Румянцев's user avatar
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 (...
Patrick's user avatar
  • 71
1 vote
1 answer
162 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 ...
jehovahsays's user avatar
1 vote
1 answer
810 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 ...
anjunatl's user avatar
  • 196
6 votes
1 answer
12k 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 ...
sh4's user avatar
  • 241
0 votes
0 answers
92 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, ...
Thomas Cheng's user avatar
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 ...
Minzkraut's user avatar
1 vote
1 answer
574 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 ...
user1901469's user avatar
1 vote
0 answers
40 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 ...
Hammerbot's user avatar
  • 175
0 votes
1 answer
145 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 ...
Auris's user avatar
  • 321
2 votes
1 answer
8k 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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
222 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 ...
Arth's user avatar
  • 385
1 vote
0 answers
107 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 ...
WeSee's user avatar
  • 486
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) ...
Auris's user avatar
  • 321
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 ...
Code's user avatar
  • 111