PHP Composer-setup Installation encountered OpenSSL extension is missing

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.