nginx下配置laravel的问题

新手上路,请多包涵

使用apache是正常的,但使用nginx却报错

Call to undefined function openssl_decrypt()

网上的什么复制文件试了没用,

$decrypted = \openssl_decrypt($payload['value'], $this->cipher, $this->key, 0, $iv);

不太清楚nginx是否有特殊设置去开启openssl,求高手解答

阅读 3.4k
3 个回答

这个东西跟nginx有什么关系,是你php没配置好,没安装openssl扩展,是linux的话重新编译php,增加编译参数 --with-openssl windows的话检查ext目录下有么有 php_openssl.dll 文件,有的话修改php.ini,添加 extension=php_openssl.dll

新手上路,请多包涵

这个和nginx没关系,是你的PHP没有配置 ,没有安装openssl扩展

nginx也有自己的模块,要不是你的nginx在编译的时候没有加这个模块要么是加了但是版本太低了。给你推荐个博客
http://ckl893.blog.51cto.com/...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题