R
R
Radiss2019-06-20 05:12:10
PHP
Radiss, 2019-06-20 05:12:10

How to fix "PHP Startup: Unable to load dynamic library" error?

The project requires version "php": "^7.1.3", I had 7.0.14 installed in modules in version 5.2.2.0 I had to download OS version 5.2.8 In modules, php 7.2 * 64 Apache 7.2 * 62
was selected In phpinfo also infa that version 7.2
The path and version of php were changed in the parameters: Computer -> System property -> Advanced parameters -> "Advanced: Environment Variable" In the system variables "Path" D:\OpenServer\modules\php\PHP- 7.2*64
But in cmd, when you run the "composer update" command, now it swears at the lack of a bunch of libraries

spoiler

PHP Warning: PHP Startup: Unable to load dynamic library 'php_mbstring.dll' (tried: w:/modules/php/PHP-7.2-x64/ext/php_mbstring.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_mbstring.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. )) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_bz2.dll' (tried: w:/modules/php/PHP-7.2-x64/ext/php_bz2.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_bz2.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. )) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: w:/modules/php/PHP-7.2-x64/ext/php_curl.dll (▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒. ), w:/modules/php/PHP-7.2-x64/ext/php_php_curl.dll.dll (▒▒ ▒▒▒▒▒▒ ▒▒

и т.д

As well as
spoiler


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


In config php 7.2 *64 these extensions are present and not comm.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sw26, 2021-02-28
@sw26

The problem was that there were crooked paths in the php.ini file.
It all started with the W drive, and I don’t have it at all. I changed all w:\ and w:/ (you need to see which drive you have) to the correct path. everything worked 100% (you need to restart the console).
I understand that the author does not need my comment anymore, but suddenly someone will see this and it will help someone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question