Centos6.8
PHP version
1. Use composer to install a third-party library, and an error message appears: SHA384 is not supported by your openssl extension
2. When installing directly, an error will be reported: Segmentation fault
The original poster doesn’t understand composer very well. What’s going on?
mv composer.phar /usr/local/bin/composer
Then execute composer to see if the installation is successful
1. First check whether openssl expansion is enabled
2. If it is enabled, it means that your openssl version is too low. Upgrade your php. I also encountered this last time and directly installed php5.6. Problem solved
Portal https://pkg.phpcomposer.com/#...
As far as I know composer.phar cannot be installed