PHP Composer - env: php: No such file or directory

May 11, 2022

I went to run PHP composer and got, "env: php: No such file or directory". Here is what I did to solve it.

I realized that my main php command was not linked.

php -v

this gave me the error:

zsh: command not found: php

I am running zshell on macos and I use Homebrew to install php, etc. Looks like I need to relink my php command

brew link php@7.4

This solved my issue and composer was up and running again.

Book Reviews

I am nuts about books. I read on all kinds of topics. I attempt to review each book I read for the sake of my own enrichment as well as conversation starters with others.

My Book Reviews
The Attic

You never know what you will find in an attic! Usually there is a hodgepodge of things buried under dust.

Explore the Attic

Most of what is included here are notes to myself. The majority of folks will not find interest in these posts.

Technology Posts