PHP7composersslrequiredforSSL/TLSprotection.

Source: Internet
Author: User
Install composer on archlinux {code ...} the following error message appears: {code ...} so I {code ...} test. php: {code ...} obtain the {code...} where the problem is located ...} the problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to official instructions, composer is installed on archlinux.

$:curl -s http://getcomposer.org/installer | php

The following error message is displayed:

Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:The openssl extension is missing, which means that secure HTTPS transfers are impossible.If possible you should enable it or recompile php with --with-openssl

So I

$:php test.php | grep ssl

Test. php:


  

Locate the problem

OpenSSL support => disabled (install ext/openssl)

The problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to the official statement, you may need to add a file php-cli.ini, final and fruitless.

Reply content:

Install composer on archlinux

$:curl -s http://getcomposer.org/installer | php

The following error message is displayed:

Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:The openssl extension is missing, which means that secure HTTPS transfers are impossible.If possible you should enable it or recompile php with --with-openssl

So I

$:php test.php | grep ssl

Test. php:


  

Locate the problem

OpenSSL support => disabled (install ext/openssl)

The problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to the official statement, you may need to add a file php-cli.ini, final and fruitless.

Check whether the installation is successful.phpInstalledopensslIf not, go to the source codeetc/openssl. Whether the environment is effectivephpinfo()The result is correct, notphp.iniYou will have it.

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.