我使用PHP(5.6.24)与IIS7。我正在尝试设置laravel,但得到以下错误。
SSL/TLS保护需要openssl扩展,但不是可用。如果不能启用openssl扩展,可以启用通过设置"禁用tls"来禁用此错误,风险由您自己承担。选项为true
确保在ext
目录上有php_openssl.dll
路径可以是php'ext'php_openssl.dll
如果使用的是xampp,路径可能会有所不同。
如果你找不到,请从这里下载
http://www.opendll.com/index.php?file-download=php_openssl.dll&拱= 32 bit& version = 5.4.3.0
然后移动到ext
dir
在php.ini
php_openssl.dll
的路径; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./" #path should match ext dir
; On windows:
extension_dir = "ext"
...
extension=php_openssl.dll