php warning php startup unable to load dynamic library openssl

Как исправить ошибку «PHP Startup: Unable to load dynamic library»?

Для проекта необходима версия «php»: «^7.1.3», у меня была установлена в модулях 7.0.14 в версии 5.2.2.0 Пришлось скачать OS версию 5.2.8 В модулях выбран php 7.2*64 Apache 7.2*62
В phpinfo также инфа о том, что версия 7.2

Но в cmd при запуске команды «composer update» теперь ругается на отсутствие кучи библиотек

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 (▒▒ ▒▒▒▒▒▒ ▒▒

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

В config php 7.2 *64 эти extension имеются и не закомм.

Источник

PHP Startup: Unable to load dynamic library, Windows, Apache 2.2, php 5.2.11

This is becoming a very frustrating issue. I am trying to do a clean install of apache 2.2 and PHP 5.2.11. Everything seems to be configured correctly but the php modules aren’t starting.

C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/

I also included them in the C:\Windows\System32

and even added C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ to the windows path.

I have no idea why this isn’t working and it feels like a no win situation. Anyone have any ideas on how to get this all working ok?

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

5 Answers 5

You just uncomment the extension_dir in php.ini

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

Just for my future self if no-else. This is with PHP 5.2.13 running in Windows on IIS 8.

I got the following error:

The extension directory:

These were the last two lines of the php.ini file:

The php_openssl.dll and php_sqlsrv_52_nts_vc6.dll files are in the ext directory. The php_openssl.dll isn’t corrupt (it’s the same file size as one on another machine that’s working).

PHP will find the sqlsrv dll but not the openssl dll. No idea why. No amounts of IIS restarting did anything.

The solution until I know better was to install the openssl.dll extension using the Windows PHP installer. You can re-run the installer and select ‘Change’ and it allows you to add or remove libraries. I can’t see any difference in the file or the php.ini file now, but now the file loads.

I suspect actually that my problem was similar to this comment about OpenSSL installation on Windows:

At this point, when you start Apache it will attempt to load php_openssl.dll, but if your setup is anything like mine you will see an error. I prefer to start Apache manually, and the error appears in a dialog box: «The ordinal 4114 could not be located in the dynamic link library LIBEAY32.dll». (I’m not sure whether you would get this message if you started Apache as a service). The Apache log also contains an error message saying that php_openssl.dll cannot be loaded, though that message doesn’t name libeay32.dll. Welcome to DLL Hell.

Libeay32.dll enters the picture because php_openssl.dll depends on it (and also on ssleay32.dll). What I think happens is that Apache first tries to load php_openssl.dll programmatically from the path specified by the extension_dir key. But then, the loading of the so-called dependent DLLs is left to Windows’ default mechanism. If Windows finds an incompatible version of a dependent DLL, you get the error.

Источник

Как исправить ошибку «PHP Startup: Unable to load dynamic library»?

Для проекта необходима версия «php»: «^7.1.3», у меня была установлена в модулях 7.0.14 в версии 5.2.2.0 Пришлось скачать OS версию 5.2.8 В модулях выбран php 7.2*64 Apache 7.2*62
В phpinfo также инфа о том, что версия 7.2

Но в cmd при запуске команды «composer update» теперь ругается на отсутствие кучи библиотек

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 (▒▒ ▒▒▒▒▒▒ ▒▒

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

В config php 7.2 *64 эти extension имеются и не закомм.

Источник

PHP Warning: PHP Startup: Unable to load dynamic library

I run a PHP script and get this error:

What does that mean?

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

20 Answers 20

It means there is an extension=. or zend_extension=. line in one of your php configuration files (php.ini, or another close to it) that is trying to load that extension : ixed.5.2.lin

Unfortunately that file or path doesn’t exist or the permissions are incorrect.

If you’re on Linux, you can find all loaded configuration files by typing this in shell:

UPDATE: As mentioned in comments, this can be even more accurate:

phpStom with XAMPP

TL;DR Except from verifying that the files exist, you might need to add the drive letter to some records in your php.ini file

I suddenly started having a problem using phpStorm 7 for debugging php with xampp and xdebug. When trying to set intellij interperter to be xampps php I got a lot of the warnings like the one in the question, for example:

Unable to load dynamic library ‘/xampp/php/ext/php_bz2.dll’

For some reason I had to add my drive letter to the records of extension_dir and browscap in the php.ini file:

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

There are various causes for this based on the exact module, but there are also some general guidelines.

For instance, /usr/lib/php/modules for Unix/Linux.

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

Will show in CLI current ini loaded file, search there for Your extension, path to it is incorrect.

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

I’ve encountered this warning message while I was trying to install a php-extension via the php.ini file;

until I figured out that you cannot load .dll extensions in Linux,

php warning php startup unable to load dynamic library openssl. Смотреть фото php warning php startup unable to load dynamic library openssl. Смотреть картинку php warning php startup unable to load dynamic library openssl. Картинка про php warning php startup unable to load dynamic library openssl. Фото php warning php startup unable to load dynamic library openssl

Источник

PHP Startup: Unable to load dynamic library #646

Comments

leandroruel commented Dec 26, 2017

guys, i already install this driver before, and worked very well, but this time, i upgraded my windows to 10, then i reinstalled my Vagrant and virtualbox again, now. when i try install the drivers at step 3.

The text was updated successfully, but these errors were encountered:

We are unable to convert the task to an issue at this time. Please try again.

The issue was successfully created but we are unable to update the comment at this time.

yitam commented Dec 27, 2017

leandroruel commented Dec 27, 2017 •

it’s a clean install and i allways use 7.1. My VM is the Laravel Homestead

yitam commented Dec 27, 2017

You should see something like
Loaded Configuration File: /etc/php/7.1/cli/php.ini

Then do this cat /etc/php/7.1/cli/php.ini | grep ‘sqlsrv’

leandroruel commented Jan 2, 2018

i give up of using it with vagrant and i’m using it in a docker container where it works very well. now i’m facing other issues but is not related with this driver anymore since i tested it with sqlcmd and is working normally, thank you!

yitam commented Jan 2, 2018

Great to hear that. Let us know if you have other problems related to our drivers. Thanks!

thewolft commented Jan 12, 2018

good I’m trying to connect to sql server from ubuntu 16.04 with php 7.0 is the first time I do could tell me what settings should I do and a connection example in php

mauricio0015 commented Jan 26, 2018

my connection to the Windows server where installing the sql server works fine if I use an apache2 server installed on another Windows machine. But it does not work from linux (Debian)

lilgreenbird commented Jan 26, 2018

hi @mauricio0015, this issue is already closed and it sounds like your symptoms are completely different anyway. Could you please open a new issue with details of your problem? Please include the version of PHP and the driver version you are using. Also, to verify your setup is correct, please verify your connection using just isql, i.e. without the driver driver. Thanks.

prabhatkumarjena16 commented Dec 16, 2019 •

You should see something like
Loaded Configuration File: /etc/php/7.1/cli/php.ini

Then do this cat /etc/php/7.1/cli/php.ini | grep ‘sqlsrv’

Hi,
I faced a similar issue. I followed your steps as mentioned. I am using PHP 7.3 / Please suggest what next step is.

yitam commented Dec 16, 2019

We need more info than that to help. For example, are you also using ubuntu? 16.04 or 18.04, etc.?

That being said, please follow our instructions on Microsoft Docs.

If not working, please create a new issue.

mkmanoj95 commented Mar 2, 2020

yitam commented Mar 2, 2020

NetBT commented Aug 19, 2020

try pecl install sqlsrv pdo_sqlsrv again

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *