Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

723
Views
"env: php: No such file or directory" on new mac OS Monterey

i've updated my mac os to Monterey (12) and then I can not use composer command or php command and get this error

env: php: No such file or directory
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

macOS 12 (Monterey) removes the system provided PHP and you will need to install it yourself.

It is easy to install if you have brew installed. Simply run the following:

brew install php@7.4 brew-php-switcher

This will install the latest version of PHP 7.4 as well as a handy utility for switching between PHP versions if you need to.

Also try running - brew link php@7.4

over 4 years ago · Santiago Trujillo Report

0

PHP has been removed from MacOS since v12 (Monterey), so you first need to install it on your own to use it. From my POV, the easiest way to do this is using Homebrew

over 4 years ago · Santiago Trujillo Report

0

run brew install php , it will take php last version, then you will be be able to use php on your mac

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!