Laravel未定义函数openssl_encrypt() [英] Laravel undefined function openssl_encrypt()
本文介绍了Laravel未定义函数openssl_encrypt()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用laravel5.1,它在php cli上工作正常. 但是我将我的项目发布到apache(版本== 2.4),问题发生了.
I use laravel5.1 and it works fine on php cli. But i publish my porject to apache(version == 2.4), the problem happened.
Encrypter.php 67行中的FatalErrorException:
调用未定义的函数openssl_encrypt()
FatalErrorException in Encrypter.php line 67:
Call to undefined function openssl_encrypt()
推荐答案
首先请确保您已安装 deceze 发现),然后:
First make sure you installed the openssl extension (spotted by deceze), then:
- 转到您的
php.ini
文件 - 删除
extension=php_openssl.dll
之前的分号 - 重新启动Apache
- Go to your
php.ini
file - Remove the semicolon before
extension=php_openssl.dll
- Restart your Apache
我希望这是问题所在.
这篇关于Laravel未定义函数openssl_encrypt()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文