gpt4 book ai didi

laravel homestead 32位中的php 7 MCRYPT_RIJNDAEL_128错误

转载 作者:行者123 更新时间:2023-12-04 18:51:23 24 4
gpt4 key购买 nike

我已经在 Windows 中安装了 32 位的 laravel homestead

git https://github.com/rmff/laravel-homestead-32bit.git Homestead32Bit
cd Homestead32Bit
vagrant up

对我来说很好
之后我下载了 laravel 5.0
composer create-project laravel/laravel Laravel  "~5.0.0" --prefer-dist

我的 homestead.yaml 文件看起来像这样
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
- ~/.ssh/id_rsa

folders:
- map: D:\www
to: /home/vagrant/www

sites:
- map: daulat.app
to: /home/vagrant/www/Laravel/public

databases:
- homestead

# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar

# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp

现在当我运行 http://daulat.app/
我收到这个错误
( ! ) Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /home/vagrant/www/Laravel/config/app.php on line 83
Call Stack
# Time Memory Function Location
1 0.0977 351248 {main}( ) .../index.php:0
2 1.0695 1913472 Illuminate\Foundation\Http\Kernel->handle( ) .../index.php:53
3 1.0695 1913472 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter( ) .../compiled.php:1880
4 1.0697 1913472 Illuminate\Foundation\Http\Kernel->bootstrap( ) .../compiled.php:1890
5 1.0697 1913472 Illuminate\Foundation\Application->bootstrapWith( ) .../compiled.php:1928
6 1.1328 1920704 Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap( ) .../compiled.php:1311
7 1.1422 1920824 Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles( ) .../compiled.php:1806
8 1.5877 1924344 require( '/home/vagrant/www/Laravel/config/app.php' ) .../compiled.php:1814

最佳答案

仔细阅读消息:

( ! ) Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'


MCRYPT_RIJNDAEL_128对比 'MCRYPT_RIJNDAEL_128'
注意 MCRYPT_RIJNDAEL_128 周围的引号,它必须是一个字符串。

关于laravel homestead 32位中的php 7 MCRYPT_RIJNDAEL_128错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36113341/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com