Laravel WAMP windows 服务器异常
Laravel exception on WAMP windows server
我在 window 服务器的 WAMP 上安装了 Laravel 应用程序,但收到此错误:
"Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()"
我想不通原因。
-- UPDATE --
我发现 php 扩展文件夹中缺少 MCrypt 模块,现在的问题是如何安装它:)
解决方案一:
在您的 php.ini
文件中启用此扩展程序 (php_mcrypt.dll
):
extension=php_mcrypt.dll
然后重启WAMP。
方案二:
对于 laravel 查看 'cipher'
下的 config/app.php
并将 CRYPT_RIJNDAEL_128
替换为 'AES-128-CBC'
确保更新 Wampserver,PHP 和 Apache:
Exit running Wamp Server
From [Wamp][1]:
- Install the Visual c++ packages,
- Update Wamp Server
- Update PHP
- Update Apache
Switch to the newest PHP:
- Wamp TrayIcon->PHP->Version-> 7.x.x
Switch to the newest Apache Version
- Wamp TrayIcon->Apache->Version-> 2.x.x
在 php.ini 文件、php 和 apache 目录
中启用 extension=openssl
我在 window 服务器的 WAMP 上安装了 Laravel 应用程序,但收到此错误:
"Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()"
我想不通原因。
-- UPDATE --
我发现 php 扩展文件夹中缺少 MCrypt 模块,现在的问题是如何安装它:)
解决方案一:
在您的 php.ini
文件中启用此扩展程序 (php_mcrypt.dll
):
extension=php_mcrypt.dll
然后重启WAMP。
方案二:
对于 laravel 查看 'cipher'
下的 config/app.php
并将 CRYPT_RIJNDAEL_128
替换为 'AES-128-CBC'
确保更新 Wampserver,PHP 和 Apache:
Exit running Wamp Server
From [Wamp][1]:
- Install the Visual c++ packages,
- Update Wamp Server
- Update PHP
- Update Apache
Switch to the newest PHP:
- Wamp TrayIcon->PHP->Version-> 7.x.x
Switch to the newest Apache Version
- Wamp TrayIcon->Apache->Version-> 2.x.x
在 php.ini 文件、php 和 apache 目录
中启用extension=openssl