php_openssl.dll扩展名无法加载



我正在使用Windows Server 2008R2上的PHP版本7.0.26。我试图通过以下步骤启用php_openssl.dll扩展名:

1. uncomment line: extension=php_openssl.dll
2. set path: extension_dir = "D:/_SERVER/_php7/ext/"
3. copy: php.ini to C:Windows
4. restart server: httpd -k stop, httpd -k start

现在,当我尝试通过php -m加载哪些扩展名时,我知道,加载了php_openssl扩展。

但是,当我尝试检查Web浏览器中的已加载扩展程序时,方法是get_loaded_extensions(),该扩展名未加载: - (

在错误日志中,有以下行:

The 'Apache2.4' service is restarting.
The 'Apache2.4' service has restarted.
winnt:notice] [pid 376:tid 456] AH00424: Parent: Received restart signal         -- Restarting the server.
[Thu Nov 30 16:47:14.478831 2017] [ssl:warn] [pid 376:tid 456] AH01873:     Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/_SERVER/_php7/ext/php_openssl.dll' - The specified module could not be found.rn in    Unknown on line 0
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/7.0.26 configured -- resuming normal operations
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00456: Apache Lounge VC15 Server built: Jul  7 2017 11:43:51
[Thu Nov 30 16:47:14.494431 2017] [core:notice] [pid 376:tid 456] AH00094: Command line: 'd:\_SERVER\_apache\bin\httpd.exe -d D:/_SERVER/_apache'
[Thu Nov 30 16:47:14.494431 2017] [mpm_winnt:notice] [pid 376:tid 456] AH00418: Parent: Created child process 6256
[Thu Nov 30 16:47:14.978047 2017] [ssl:warn] [pid 6256:tid 188] AH01873:     Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/_SERVER/_php7/ext/php_openssl.dll' - The specified module could not be found.rn in Unknown on line 0
[Thu Nov 30 16:47:15.461662 2017] [mpm_winnt:notice] [pid 6256:tid 188] AH00354: Child: Starting 64 worker threads.
[Thu Nov 30 16:47:17.021712 2017] [mpm_winnt:notice] [pid 3668:tid 188] AH00364: Child: All worker threads have exited.

我敢肯定,通往php_openssl.dll的路径是正确的。

谢谢您的帮助。问候。

php.ini

; Directory in which the loadable extensions (modules) reside.
; On windows:
extension_dir = "ext"

i删除了php和apache,下载最新版本,配置,现在起作用。但是我找不到这种失败的正确原因: - (

谢谢您的帮助。

相关内容

  • 没有找到相关文章

最新更新