2013-01-22 16:22
浏览 119

在mac上安装php 5.4,更改版本?? (返回旧版本?)

Im trying to update php to 5.4, and I think ive installed it with But when i do php -v it says that i have 5.3.15. But if i do /usr/local/php5/bin/php -v it says 5.4.9. Is there something i should change to get 5.4 as default?

here's a pic of Terminal: enter image description here

(never done this before, sorry if its a stupid question.)

图片转代码服务由CSDN问答提供 功能建议

我试图将php更新为5.4,我想我已经用 。 当我做 php -v 时,它说 我有5.3.15。 但是,如果我执行 / usr / local / php5 / bin / php -v ,它会说5.4.9。 有什么我应该改变以获得5.4作为默认值吗?



  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • drc15469 2013-01-22 16:25

    Uninstall the old version of php and make sure that the new versions directory is in the $PATH variable.

    点赞 评论
  • doushuangai9733 2013-01-23 12:46

    typing this in Terminal fixed it for me: PATH=/usr/local/php5/bin:$PATH

    点赞 评论

相关推荐 更多相似问题