I'm using macOS Monterey and trying to install Php using Homebrew. I've read in several articles that installing via Homebrew is the easiest way to do this on a Mac. I'm following this tutorial: https://www.geeksforgeeks.org/how-to-install-php-on-macos/
After successfully installing Homebrew, I used the command brew tap username/php
This is what I get on the terminal:
==> Tapping saadmohammad/php Cloning into '/opt/homebrew/Library/Taps/saadmohammad/homebrew-php'... Username for 'https://github.com': saad931549 Password for 'https://[email protected]': remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/saadmohammad/homebrew-php/' Error: Failure while executing; `git clone https://github.com/saadmohammad/homebrew-php /opt/homebrew/Library/Taps/saadmohammad/homebrew-php --origin=origin --template=` exited with 128.
How do you think I should get through this?
I have successfully set up an SSH key and added it to my GitHub account. Do you think I could use this to verify my account and continue the installation? Obviously, I'm a beginner at this.
I looked up articles on how to use SSH keys for authentication and they discussed public and private keys. I can use both public and private keys.
So the issue boils down to being able to authenticate using an existing SSH key that has also been added to the GitHub account. I have tried doing this but no luck so far. And I'm reluctant to study one of these articles because it might take too long.
Can someone point me in the right direction? Thank you so much..!
Hi, I have checked your details but saadmohammad on GitHub does not have a repository for Homebrew/php so it is throwing an error. If the repository is found at https://github.com/saadmohammad/homebrew-php/ as mentioned in the error response above, then it works fine.
It's not "brew tap username/php", it's actually a repository on GitHub. So, use brew tap shivammathur/php and install php via command brew install shivammathur/php/php@8.
Thanks