windows composer

The php.ini problem corresponding to windows composer is not the php.ini in the apache directory, but the php.ini in the php directory

Encountered two situations

一种是:Composer The openssl extension is required for SSL/TLS protection

One is: jpush/jpush v3.5.8 requires ext-curl

At first I thought it was a php extension problem, but it could be checked. All are normal (the extension in php.ini under apache). This problem has been entangled for a long time. Later, I checked the php.ini under php and matched it. After opening the extension, the problem is solved

Attach

In the first case, there are two solutions:

1. No need to open the extension, directly enter the command composer config -g - disable-tls true

2. Open the php_openssl extension,

Find the php.ini file under D:\wamp\bin\php\php5.6.37 (see the personal installation path to confirm) and open it with sublime.

Find extension=php_openssl.dll, delete extension=php_openssl.dllthe semicolon in front, and uncomment it to enable the OpenSSL plugin.

Note: Because the SSL connection requires authentication, you need to prepare the CA certificate before proceeding with the following steps (it is recommended to save the certificate in the D:\wamp\bin\php\php5.6.37 \verifydirectory), which can be downloaded from https://curl. Download at haxx.se/docs/caextract.html .

openssl.cafile= "D:\wamp\bin\php\php5.6.37\verify\cacert.pem"

Complete the above operation and run composer update again in the cmd environment. The problem is solved

Guess you like

Origin blog.csdn.net/u010063830/article/details/82753006