Friday, January 7, 2022

[FIXED] zsh: command not found: php

Issue

I have been using php with mamp on mac for a year even with old versions of MacOS, since I installed MacOS Monterrey if I type php on the terminal I get a message:zsh: command not found: php

Using older versions of MacOS I have never had this problem.

How can I solve the problem?


Solution

I had the same issue after updating to Monterry. After some googling, I find out MacOS doesn't include PHP. You need Homebrew to install PHP again.

brew install php

https://daily-dev-tips.com/posts/installing-php-on-your-mac/



Answered By - MetalBearSolid

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.