Solve the problem of SSL error when running PHP composer when installing yii2 under WIN8

Source: Internet
Author: User

Today try to run composer under the Win8, but there is an SSL error:

D:\data\www\mmoyu\symapp>php-f%phprc%\composer Install

Loading Composer repositories with the package information

[Composer\downloader\transportexception]

The "Https://packagist.org/packages.json" file could not being Downloaded:ssl

Operation failed with code 1. OpenSSL Error messages:

Error:14090086:ssl routines:SSL3_GET_SERVER_CERTIFICATE:certificate Verify

Failed

Failed to enable Crypto

Failed to open Stream:operation failed

Install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-p

Lugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--ver

Bose] [-o|--optimize-autoloader]



No CA certificate installed caused!!!


CA Certificate: http://curl.haxx.se/docs/caextract.html


Then modify the php.ini file


Openssl.cafile=c:/lamp/php56/verify/cacert.pem

Restart Apache



Solve the problem of SSL error when running PHP composer when installing yii2 under WIN8

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.