[英]Vagrant uses old php version
Can't find this online, probably not describing it properly because I'm pretty sure I am not alone with this problem. 在网上找不到此内容,可能无法正确描述,因为我敢肯定我并不孤单。
I have vagrant running for a few months now, with PHP 5.6. 我已经使用PHP 5.6运行了几个月的游民。 Now I upgraded to PHP 7, but when I request my php -v
inside Homestead in Terminal it still gives me version 5.6. 现在我升级到PHP 7,但是当我在Terminal的Homestead中请求php -v
,它仍然提供5.6版。
When I request my PHP version with this snippet <?php phpinfo() ?>
inside a webpage I DO get version 7. 当我在网页中使用此代码段<?php phpinfo() ?>
请求我的PHP版本时,我确实获得版本7。
Is this normal or am I forgetting something? 这是正常现象还是我忘记了什么?
Thanks 谢谢
UPDATE I have version 7.0 in my vagrant ssh right now. 更新我流浪的ssh中现在有7.0版。 But apperently there is a different environment for ssh, ftp, code, ... 但是显然,对于ssh,ftp,代码,...存在不同的环境。
How do I set all of these versions to the same (obviously the latest 7.0 version) 如何将所有这些版本设置为相同(显然是最新的7.0版本)
试试这个,如果这是php7的正确路径,则可以使用php7.0而不是php
/usr/bin/php7.0 -v
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.