Questions tagged [composer]

Composer is a dependency manager for PHP.

Composer is a PHP dependency manager which is similar in concept to bundler or cpan. It can be used to install PHP packages and their dependencies on an as-needed basis.

32 questions
1
vote
1 answer

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, it doesn't have to be the most secure but at…
Oakleaf
  • 111
  • 1
  • 2
0
votes
1 answer

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 setup the projectdir to use PHP7.3 and that works…
Bart Friederichs
  • 353
  • 1
  • 6
  • 23
0
votes
1 answer

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 always get this error: Could not find a version…
Asitis
  • 97
  • 8
0
votes
1 answer

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.ini and the Max Memory Limit allocated was 256M But…
0
votes
1 answer

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/web_error_ssl.log <== [Fri Dec 07 15:38:24.154218 2018]…
Yarik Dot
  • 1,583
  • 12
  • 26
0
votes
2 answers

./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 better? Recently we switched offices and as a…
Laurent
  • 135
  • 1
  • 6
0
votes
0 answers

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, dockerfiles are best to keep them as flexible and…
Thomas Cheng
  • 101
  • 1
0
votes
2 answers

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 install (throwing a incompatibility issue with…
Minzkraut
  • 83
  • 1
  • 9
0
votes
1 answer

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 certificate or the composer repo. Now composer update…
Auris
  • 311
  • 1
  • 3
  • 14
0
votes
1 answer

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) * Initializing NSS with certpath:…
Auris
  • 311
  • 1
  • 3
  • 14
0
votes
1 answer

How to change the default timeout configuration file for composer

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 COMPOSER_PROCESS_TIMEOUT=300 to COMPOSER_PROCESS_TIMEOUT=2000 as…
Code
  • 111
  • 4
0
votes
2 answers

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 run-script --list (documentation). So i pipe that command…
gremo
  • 339
  • 1
  • 4
  • 20
0
votes
0 answers

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/installer | /usr/bin/php7.1-cli But I get the following…
Jodes
  • 101
  • 4
0
votes
1 answer

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-php-ext-install zip COPY --from=composer:latest /usr/bin/composer…
DevelJoe
  • 187
  • 3
  • 11
0
votes
1 answer

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 laravel website which I believe is the solution to…
r j
  • 1
  • 2