PHP7 Curl and OpenSSL extensions do not work with Apache 2 handler on Windows

There was a problem initializing the curl and openssl extensions from PHP7 in Apache2.2 module handler mode.

If I use FCGI mode, curl and openssl from PHP7 work fine, and I can see them on the phpinfo page.

I checked the dependencies of curl and openssl php extensions and saw that they dynamically link to libssh2.dll. Then they tried to add libssh2.dll to the path, the system path, but this still does not work.

So, suppose that somehow Apache2.2 might be a problem, since curl and openssl extensions from PHP7 work fine when they start in FCGI mode. Is there any way to check this with ollydbg or windbg?

+4
source share
2 answers

You must overwrite these files: libeay32.dll and ssleay32.dll in the apache / bin directory, get these files from your php7 / directory

http://php.net/manual/es/openssl.installation.php

+3
source

Try updating Apache to the latest stable version. This helped me solve the problem with PHP 7.0.6RC1 and Apache 2.4.4 (updated to 2.4.20).

+2
source

Source: https://habr.com/ru/post/1618871/


All Articles