0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

php7.3 → php8.1へバージョンアップする方法

Last updated at Posted at 2022-05-22

相当詰まってようやく解決

[解決した記事](https://zenn.dev/yuzuyuzu0830/articles/347b76de0ced70)

やった事

1.php -v
現状のバージョン確認
2.brew install php@8.1 && brew link --force php@8.1
php8.1のインストールとHomebrewを8.1にリンク
3.open ~/.zshrc
パスを通すために.zshrcを開く。
開いたら、以下を追記しパスを通す。

export PATH="/usr/local/opt/php@8.1/bin:$PATH"
export PATH="/usr/local/opt/php@8.1/sbin:$PATH"

4.source ~/.zshrc
パスを反映させる。

上記を行うと、php -vを再度行うとphpのバージョンが8.1へ上がっている。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?