Laravel未定义函数openssl_encrypt() [英] Laravel undefined function openssl_encrypt()

查看:50
本文介绍了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:

  1. 转到您的php.ini文件
  2. 删除extension=php_openssl.dll之前的分号
  3. 重新启动Apache
  1. Go to your php.ini file
  2. Remove the semicolon before extension=php_openssl.dll
  3. Restart your Apache

我希望这是问题所在.

这篇关于Laravel未定义函数openssl_encrypt()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆