Problem Description:
After the installation finishes php-7.1.17, the following error occurs when installing composer
[Email protected] src]# Curl-ss Https://getcomposer.org/installer | Phpsome settings on your machine make Composer unable to work properly. Make sure so you fix the issues listed below and run this script again:the OpenSSL extension is missing, which means tha T secure HTTPS transfers is impossible. If possible should enable it or recompile PHP with--with-openssl
Problems with PHP configuration files found during troubleshooting, not loaded into the php.ini file
[[email protected] php]# php--iniconfiguration file (php.ini) Path:/usr/local/php-7.1.17/libloaded Configuration file: (None) Scan for additional. ini files in: (none) additional. ini Files parsed: (none)
Create a soft chain
[Email protected] php]# ln-s/home/sc/php/php7-9026.ini/usr/local/php/lib/php.ini
Locate php.ini File
[[email protected] lib]# php--iniconfiguration file (php.ini) Path:/usr/local/php-7.1.17/libloaded Configuration file: /usr/local/php-7.1.17/lib/php.iniscan for additional. ini files in: (none) additional. ini Files parsed: (none)
Installing composer again is normal.
Curl-ss Https://getcomposer.org/installer | PHPMV Composer.phar/usr/local/bin/composer
Viewing through Phpinfo is already loaded into OpenSSL, but no php.ini is found resulting in an absolute path when not loaded into the module.
PHP Composer-setup Installation encountered OpenSSL extension is missing