Composer not Found

Created on 2 June 2023, almost 2 years ago
Updated 8 December 2023, over 1 year ago

Problem/Motivation

PhpTuf\ComposerStager\Domain\Exception\LogicException: The "composer" executable cannot be found. Make sure it's installed and in the $PATH. in PhpTuf\ComposerStager\Infrastructure\Service\Finder\ExecutableFinder->find() (line 25 of vendor/php-tuf/composer-stager/src/Infrastructure/Service/Finder/ExecutableFinder.php).

When activating the module on back office..
is it because on plesk composer is in "/usr/lib64/plesk-9.0/composer.phar" ?

Steps to reproduce

composer require 'drupal/automatic_updates:^2.7' --with-all-dependencies
activate on backoffice

Thanks

πŸ’¬ Support request
Status

Closed: works as designed

Version

2.7

Component

Package Manager

Created by

πŸ‡΅πŸ‡ΉPortugal filipetakanap

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @filipetakanap
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    If Composer can't be found in the PATH of the web server user, then it won't be detectable.

    You could probably solve this by running the following Drush command: drush cset package_manager.settings executables.composer /usr/lib64/plesk-9.0/composer.phar.

    Or, if you don't have Drush, add this to settings.php:

    $config['package_manager.settings']['executables']['composer'] = '/usr/lib64/plesk-9.0/composer.phar';
    
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Closing this; the solution I offered in #2 should work, to the best of my knowledge, and I didn't hear back in this issue.

Production build 0.71.5 2024