• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved PHP Fatal error: Uncaught exception 'PharException'

CoyoteKG

Regular Pleskian
Code:
/var/www/vhost/magento2$ composer install

PHP Fatal error:  Uncaught exception 'PharException' with message 'phar "/usr/lib/plesk-9.0/composer.phar" has a broken signature' in /usr/lib/plesk-9.0/composer.phar:23
Stack trace:
#0 /usr/lib/plesk-9.0/composer.phar(23): Phar::mapPhar('composer.phar')
#1 {main}
  thrown in /usr/lib/plesk-9.0/composer.phar on line 23

Hi, I got this message when I tried to install composer for one magento site.
Do anyone have idea how to fix this?
 
Hi I just reinstalled composer with next steps

Code:
$ su
# cd /usr/lib/plesk-9.0/
# php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
# php composer-setup.php
# php -r "unlink('composer-setup.php');"
 
I´m getting the same error, but the above reinstall composer fix is not working for me.
Command 4 tells me Install corrupt.
 
Back
Top