我在Windows中安装了32位的laravel宅基地
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
答案 0 :(得分:2)
仔细阅读信息:
(!)注意:使用未定义的常量MCRYPT_RIJNDAEL_128 - 假设为'MCRYPT_RIJNDAEL_128'
MCRYPT_RIJNDAEL_128
vs 'MCRYPT_RIJNDAEL_128'
注意MCRYPT_RIJNDAEL_128
周围的引号,它必须是一个字符串。