How do I upgrade PHP in Mac OS X?

前端 未结 13 787
暖寄归人
暖寄归人 2020-12-12 13:34

I feel this is an awfully obtuse question to ask, but strangely, this problem is poorly documented.

I would like to upgrade PHP, but there are several problems:

13条回答
  •  伪装坚强ぢ
    2020-12-12 14:08

    Check your current php version in terminal with the following command,

    $ php -v
    

    You see current php version in terminal, and next command run in terminal if you want to upgrade your php version with php concat with version liked as,

    $ brew install homebrew/php/php71
    

    Please restart terminal if you finished php version upgrade installed and run the command.

    $ php -v
    

    Now you see the current php version in terminal....thank

提交回复
热议问题