Composer error: Uncaught PharException: phar "/usr/lib/plesk-9.0/composer.phar" has a broken signature

Follow

Comments

2 comments

  • Avatar
    Maghreb Services SARL

    It seems that the hash value for composer-setup.php has changed since this article has been published, so the instructions no longer work.

    Maybe Plesk users should be referred to the current hash value which is https://getcomposer.org/download/

    or it might be better to use the recommended script for installing programmatically, which is found at https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md 

  • Avatar
    Nikita Nikushkin

    Hello @Maghreb Services SARL,

    Thank you for the feedback!

    Indeed the hash value is changed from time to time and the solution stopped to be valid as well

    I reworked the article - there is a reference to the official Composer website now from which one the up-to-date commands have to be executed

Please sign in to leave a comment.

Have more questions? Submit a request