• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved PHP Fatal error: Uncaught exception 'PharException'

kojot

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