![](/img/trans.png)
[英]Trouble installing composer for PHP 7 on windows to get PHPmailer
[英]Errors in installing php composer on windows
在安裝作曲家以使用laravel框架時,出現了一些錯誤:
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
The download failed repeatedly, aborting.
我確定php.ini
中的Openssl
已啟用。
啟用OpenSSL擴展並不意味着它配置正確。
它無法驗證getcomposer.org
的證書。 這意味着某些中間人服務器將您的請求弄亂了,或者您以某種方式未配置默認的CA權威集合。 您的服務器操作員可以告訴您更多信息。
我在Windows 7上使用Wamp有相同的問題,並且我已經在php.ini中啟用了openssl.dll,仍然報告相同的錯誤。 我的問題是由網絡提供商造成的,我不知道它們有什么問題。 當我連接到VPN網絡后,它就像一個魅力。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.