php7.4开启openssl扩展还是报错

php7.4开启openssl扩展还是报错

Call to undefined function openssl_get_cipher_methods()

或者

Call to undefined function openssl_encrypt()

解决办法:

1)开启php扩展extension=php_openssl.dll

2)将php根目录下的libcrypto-1_1-x64.dlllibssl-1_1-x64.dll这两个文件复制到Apache的bin目录,如果php根目录下没有,请到http://windows.php.net/downloads/php-sdk/deps/vc15/x64/下载。

最后重启WampServer。

操作系统window7x64

wampserver2.5、php-7.4.15-Win32-vc15-x64。

评论
:broken_heart: :confounded: :flushed: :frowning: :grinning: :heart: :kissing_heart: :mask: :pensive: :rage: :relaxed: :scream: :smile: :smirk: :sob: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_winking_eye: :wink: