• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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