apache2.4 和 php7.1 禁用了 openssl
在 phpinfo() 中;结果给我这个
OpenSSL support disabled (install ext/openssl)
- 我在 php.ini 中更改了它
extension=php_openssl.dll
- 我使用此代码使用 WINDOWS CMD
set OPENSSL_CONF=/path/to/openssl.cnf
- 它在 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/