Problem updating

Asked

Viewed 111 times

2

I am the following version of php

PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

I’m using the php extension_dir in the path

extension_dir = "C:/WEBSERVER/PHP7.2/ext"

I released the openssl extension in php.ini

extension=php_openssl.dll

This extension is present in the ext folder

When I run Composer update or Composer install

Gives the following message

 [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.


config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...

I’ve tried running the following command:

 composer config -g -- disable-tls true

But the previous error is repeated..

The php I’m using is Thread safe

1 answer

0

Only using the relative path to your extensions directory is enough:

extension_dir = "ext"

If you want to use the absolute path, remember that Windows uses backslash to separate directories:

extension_dir = "C:\WEBSERVER\PHP7.2\ext"
  • Only with "ext" does not work

  • php is configured in your PATH? Here I use only ext smoothly

  • Yes. When I give php -version it shows

Browser other questions tagged

You are not signed in. Login or sign up in order to post.