composer installation package error

WBOY
Release: 2016-08-08 09:06:35
Original
1458 people have browsed it

I am installing this package

<code>composer global require "fxp/composer-asset-plugin:~1.1"</code>
Copy after login
Copy after login

The following information is prompted

<code> 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 'disabl
  e-tls' option to true.</code>
Copy after login
Copy after login

Does it mean that if you disable tls, you can continue to use it, and you will be responsible for the consequences?


Additionally, I turned on the openssl extension of php.ini in php

It has been solved after the guidance of the master. The main reason is that php.ini does not set the extension path.
And I have downloaded wamp before, and there are residual paths in the system environment variables, which need to be deleted

<code>php.ini里设置
extension_dir = "ext"</code>
Copy after login
Copy after login

Reply content:

I am installing this package

<code>composer global require "fxp/composer-asset-plugin:~1.1"</code>
Copy after login
Copy after login

The following information is prompted

<code> 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 'disabl
  e-tls' option to true.</code>
Copy after login
Copy after login

Does it mean that if you disable tls, you can continue to use it, and you will be responsible for the consequences?


Additionally, I turned on the openssl extension of php.ini in php

It has been solved after the guidance of the master. The main reason is that php.ini does not set the extension path.
And I have downloaded wamp before, and there are residual paths in the system environment variables, which need to be deleted

<code>php.ini里设置
extension_dir = "ext"</code>
Copy after login
Copy after login

The openssl extension of php is not enabled. Edit php.ini to open the openssl extension.

A little extra for you to quickly check if your extension is enabled:

php -m

If the extension you have enabled is not among the listed extensions, please check in order:

  • php version, this is the first check item when there are multiple php versions in the environment, because the web service and CLI are likely to have inconsistent versions;

  • Configuration file path

  • Expansion paths, such as the problems encountered by the subject;

  • Extended version, this will cause an error. Generally, when you execute the php -m command, you will be prompted

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!