日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Composer The openssl extension is required for SSL/TLS protection

發布時間:2024/9/20 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Composer The openssl extension is required for SSL/TLS protection 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

=============================新的解決方法(較完善)=================================

? ? Composer 是 PHP5以上 的一個依賴管理工具。它允許你申明項目所依賴的代碼庫,它會在你的項目中為你安裝他們。Composer 不是一個包管理器。是的,它涉及 "packages" 和 "libraries",但它在每個項目的基礎上進行管理,在你項目的某個目錄中(例如 vendor)進行安裝。默認情況下它不會在全局安裝任何東西。因此,這僅僅是一個依賴管理。

? ? 安裝好Composer時通過composer install,發現沒有正常安裝,而是提示:

? [Composer\Exception\NoSslException]
? The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error?, at your own risk, by setting the 'disable-tls' option to true.

? ?對于這個問題,我嘗試使用下面的命令解決:

[plain]?view plaincopy
  • composer?config?-g?--?disable-tls?true??
  • ? ? 然而出現了另外的問題:
    ? [Composer\Downloader\TransportException]
    ? Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/doc/06-config.md#secure-http for details.

    ? ? 所以需要再次進行設置,禁用SSL

    [plain]?view plaincopy
  • composer?config?secure-http?false??
  • ????composer?config?-g?secure-http?false??

  • ? ? 之后,一部分可以正常安裝了,還有一部分提示超過300stimeout,所以對時間進行設置:

    ? ??增加COMPOSER_PROCESS_TIMEOUT,通過命令composer config --list看到默認是300s,然后通過命令composer config -g process-timeout 600增加COMPOSER_PROCESS_TIMEOUT至600s。

    ? ? 至此,Composer能夠正常運行。


    ================================================================





    ====Executing command 'composer update ?"topthink/framework" --no-interaction --no-ansi'====
    You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug [Composer\Exception\NoSslException] ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? The openssl extension is required for SSL/TLS protection but is not availab ? le. If you can not enable the openssl extension, you can disable this error ? , at your own risk, by setting the 'disable-tls' option to true. ? ? ? ? ? ?? update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
    ====composer command completed with exit code 1====


    解決方法:composer config -g -- disable-tls true

    或者開啟php的ssl開啟


    =================================================


    來源:http://www.rabbit8.cn/576.html

    總結

    以上是生活随笔為你收集整理的Composer The openssl extension is required for SSL/TLS protection的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。