Laravel 5.7在Apache错误上的调用未定义的函数Illuminate \ Encryption \ openssl_cipher_iv_length() [英] Laravel 5.7 on apache error Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

查看:82
本文介绍了Laravel 5.7在Apache错误上的调用未定义的函数Illuminate \ Encryption \ openssl_cipher_iv_length()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP 7.1.26在Apache 2.4上设置Laravel 5.7.我配置了所有类似文档的内容.但我收到以下错误:

I'm setting Laravel 5.7 on Apache 2.4 using PHP 7.1.26. I configured everything like documentations. But I'm getting the error below:

调用未定义函数Illuminate \ Encryption \ openssl_cipher_iv_length()

Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

我已经将PHP版本更改为7.2,什么也没有.我已经将文件libeay32.dll复制到Apache了,什么也没有

I've already change PHP version to 7.2 and nothing. I've already copied the file libeay32.dll to Apache and nothing

这些是我在PHP中使用的模块

These are my modules in PHP

[PHP模块]
bcmath
日历
核心
ctype
卷发
日期
dom
exif
fileinfo
过滤器
gd
gettext
gmp
哈希
iconv
imap
国际
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
odbc
openssl
pcre
PDO
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
readline
反射
会话
SimpleXML
肥皂
插座
SPL
标准
整洁
标记器
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
拉链
zlib

[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
odbc
openssl
pcre
PDO
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
readline
Reflection
session
SimpleXML
soap
sockets
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

推荐答案

只需从laravel安装目录运行 composer update 命令并确保在php.ini中启用了 extension = php_openssl.dll .

Just Run composer update command from laravel installation directory And make sure extension=php_openssl.dll is enabled in php.ini

重新启动Apache服务器...

Restart Apache Server...

享受:)

这篇关于Laravel 5.7在Apache错误上的调用未定义的函数Illuminate \ Encryption \ openssl_cipher_iv_length()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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