PHP Composer extension is not accessible in Plesk after Composer upgrade to v2.0: Package plesk/composer-command-info has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

Follow

Comments

2 comments

  • Avatar
    KnuBew

    Unfortunately, the proposed solution alone did not help in my case. I suspect this was because I installed Composer for some domains through the console a long time ago. So I had to make the following additional changes:

    1.) In the base directory of the domain I had to update the old version to "~ 1.1.0" in the file "/.composer/composer.json":

    {
    "require": {
    "plesk / composer-command-info": "~ 1.1.0"
    }

    2.) In the base directory of the domain I also had to update the version to "1.1.0" in the file "/.composer/composer.lock":

    {
    ...
    "name": "plesk / composer-command-info",
    "version": "1.1.0",
    ...
    }

    3.) Then I had to uninstall the "Composer" extension in the Plesk Update Panel and then reinstall it again. Only then did no more error messages appear.

    If someone wants to follow these steps, I urgently recommend to make a backup of the respective ".composer" directory beforehand to be on the safe side!

    0
    Comment actions Permalink
  • Avatar
    Anastasia Zyrianova

    Hello KnuBew,

    Thank you for sharing the details! This information may be helpful for others who have the same scenario.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request