簡體   English   中英

php 7 MCRYPT_RIJNDAEL_128在Laravel宅基地32位錯誤

[英]php 7 MCRYPT_RIJNDAEL_128 error in laravel homestead 32 bit

我在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

仔細閱讀消息:

(!)注意:使用未定義的常量MCRYPT_RIJNDAEL_128-假定為'MCRYPT_RIJNDAEL_128'

MCRYPT_RIJNDAEL_128'MCRYPT_RIJNDAEL_128'

請注意MCRYPT_RIJNDAEL_128周圍的引號,它必須是字符串。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM