Questions tagged [composer]

Composer is a dependency manager for PHP.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Bitbucket pipelines with docker and composer

I'm trying to deploy a PHP project using Bitbucket Pipelines. It is using a custom docker image and the project is trying to install a private Bitbucket package. When i run the pipeline, i get an ...
user avatar
  • 111
0 votes
0 answers
16 views

Change Composer cache folder on Debian (without sudo)

I'm really not expert with Linux, please bear me. I'm on a managed hosting so I cannot use sudo. If I try to excecute composer self-update I get an error message telling me that there is a problem ...
user avatar
  • 175
0 votes
1 answer
455 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 ...
user avatar
  • 1
0 votes
0 answers
47 views

issue with composer on staging but not production environment

Running composer on staging environment gives me a 400 error. I am wondering if there's a quick fix, because it seems like it's a networking issue, but I am not sure if it has to do with Composer's ...
user avatar
  • 7
0 votes
0 answers
2k 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 ...
user avatar
  • 1,021
0 votes
1 answer
2k 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, ...
user avatar
  • 101
-1 votes
1 answer
991 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 ...
user avatar
0 votes
2 answers
145 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 ...
user avatar
1 vote
1 answer
486 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 ...
user avatar
  • 121
0 votes
1 answer
301 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 ...
user avatar
0 votes
1 answer
137 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 ...
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....
user avatar
  • 1
0 votes
1 answer
1k 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/...
user avatar
  • 1,533
1 vote
1 answer
2k 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 ...
user avatar
2 votes
1 answer
371 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 ...
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 ...
user avatar
  • 135
1 vote
1 answer
72 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 ...
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 (...
user avatar
  • 71
1 vote
1 answer
161 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 ...
user avatar
1 vote
1 answer
709 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 ...
user avatar
  • 196
6 votes
1 answer
10k 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 ...
user avatar
  • 231
0 votes
0 answers
84 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, ...
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 ...
user avatar
1 vote
1 answer
560 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 ...
user avatar
1 vote
0 answers
34 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 ...
user avatar
  • 175
0 votes
1 answer
139 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 ...
user avatar
  • 301
2 votes
1 answer
6k 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
179 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 ...
user avatar
  • 353
1 vote
0 answers
99 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 ...
user avatar
  • 476
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) ...
user avatar
  • 301
0 votes
1 answer
2k 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 ...
user avatar
  • 111