Plesk

Unable to access PHP Composer: Your requirements could not be resolved to an installable set of packages

Symptoms

Cause

This is a Composer extension bug with the ID #EXTPHPCOMP-122.

Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

As a workaround downgrade composer to 1.10.1 version by applying the steps below:

  1. Log into the server via SSH.

  2. Add in /usr/local/psa/admin/conf/panel.ini, the next text:

    [composer]
    downloadUrl = https://getcomposer.org/composer-stable.phar

    Note: If there's already an existing [composer] section, do not add again the tag [composer] but add the downloadUrl right under the existing section.

  3. Execute:

    # plesk daily ComposerSelfUpdate

  4. Verify the composer version:

    # composer --version