Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What about composer error certificate verify failed in PHP

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the PHP composer error certificate verify failed how to do, the article is very detailed, has a certain reference value, interested friends must read it!

Environment: centos7

An error occurred while using composer to install dependencies. The following error description occurred:

Failed to download laravel/laravel from dist: The "https://files.phpcomposer.com/files/laravel/laravel/48f44440f7713d3267af2969ed84297455f3787e.zip" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failedFailed to enable cryptofailed to open stream: operation failed

There is something wrong with the certificate.

Try to fix:

Yum update-y

After all the software updates, restart the machine and try composer to install the dependency again. It is successful.

Composer create-project-- prefer-dist laravel/laravel vms3.0-adminInstalling laravel/laravel (v5.4.15)-Installing laravel/laravel (v5.4.15): Downloading Created project in vms3.0-admin > php-r "file_exists ('.env') | | copy ('.env.example', '.env') "Loading composer repositories with package informationUpdating dependencies (including require-dev) Package operations: 59 installs, 0 updates, 0 removals-Installing symfony/polyfill-mbstring (v1.3.0): Downloading (100%)-Installing symfony/var-dumper (v3.2.6): Downloading (100%) is all the contents of this article" what to do about composer error certificate verify failed in PHP ". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report