2016-11-05 53 views
0

我有最後的Vagrant + Homestead安裝。 Nginx的+ Laravel + PHP7 我addedd HHVM:真實的YAML文件中像這樣hhvm宅基地:true,但不使用hhvm?

- map: example.local 
    to: /home/vagrant/Code/example/public 
    hhvm: true 

,並出具無業遊民重裝。啓動時沒有錯誤消息。

但是,當我在example.local中的頁面上顯示phpinfo()時,我仍然可以看到PHP版本7.0.8-2 還有其他事情要做嗎?

回答

0

我刪除了nginx塊中的php配置。 在/etc/nginx/sites-available/example.local的配置開始

location ~ \.php$ {... 

顯然指向

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; 

我刪除了整體的一部分,並與

include hhvm.conf; 
取代

並重新啓動nginx