Windows上的Apache/PHP中禁用了OpenSSL支持 [英] OpenSSL support disabled in Apache/PHP on Windows
问题描述
在phpinfo();中结果给我这个
in phpinfo(); results give me this
OpenSSL支持已禁用(安装ext/openssl)
OpenSSL support disabled (install ext/openssl)
- 我在php.ini中更改了此内容
extension = php_openssl.dll
extension=php_openssl.dll
- 我通过WINDOWS CMD使用此代码
设置OPENSSL_CONF =/path/to/openssl.cnf
set OPENSSL_CONF=/path/to/openssl.cnf
- 在CMD中使用时已启用,但在phpinfo()中已禁用;
php --ri openssl OpenSSL支持=>已启用 OpenSSL库版本=> OpenSSL 1.0.2j 2016年9月26日 OpenSSL默认配置=> C:/jampp/php71/extras/ssl/openssl.cnf
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中向我显示此错误
its now working in CMD and but phpinfo(); not and in laravel 5 show me this error
调用未定义函数openssl_encrypt()
Call to undefined function openssl_encrypt()
谢谢
推荐答案
感谢您只需要将(php的DLL文件)包含到httpd.conf中即可.
Thank you all its just need includes the (DLLs files of php) into 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"
这篇关于Windows上的Apache/PHP中禁用了OpenSSL支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!