php - Windows 上的 Apache/PHP 禁用 OpenSSL 支持

标签 php windows apache laravel php-openssl

apache2.4 和 php7.1 禁用了 openssl

在 phpinfo() 中;结果给我这个

OpenSSL support disabled (install ext/openssl)

  1. 我在 php.ini 中更改了它

extension=php_openssl.dll

  1. 我使用此代码使用 WINDOWS CMD

set OPENSSL_CONF=/path/to/openssl.cnf

  1. 它在 CMD 中使用时启用,但在 phpinfo() 中禁用;

php --ri openssl OpenSSL support => enabled OpenSSL Library Version => OpenSSL 1.0.2j 26 Sep 2016 Openssl default config => C:/jampp/php71/extras/ssl/openssl.cnf

它现在在 CMD 和 phpinfo() 中工作;不是,在 laravel 5 中告诉我这个错误

Call to undefined function openssl_encrypt()

谢谢

最佳答案

谢谢你,它只需要将(php 的 DLLs 文件)包含到 httpd.conf 中

LoadFile "C:/jampp/php/libeay32.dll"
LoadFile "C:/jampp/php/ssleay32.dll"
LoadFile "C:/jampp/php/php7ts.dll"
LoadFile "C:/jampp/php/libpq.dll"

关于php - Windows 上的 Apache/PHP 禁用 OpenSSL 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41707783/

相关文章:

windows - 如何使用 CMake 生成 Windows DLL 版本控制信息?

php - 检查插入或更新表

php - 在 codeigniter 中显示前 10 个结果并显示第 1、第 2 和第 3 个最高值

php - 检查关联是否存在而不捕获 Doctrine2 中的异常?

c - Windows中的系统调用

c++ - Windows 上的直接文件系统函数调用

apache - Symfony 2.4 的 ProxyPassMatch 规则

apache - 无效命令 'ReWriteEngine'

html - Apache2 cgi 无法在 html 页面中正确解析 css 链接

php - php mysql 中的 id 分组错误?