macOS 12.0 -where oh where is PHP

PHP seems to be missing from this release.

Post not yet marked as solved Up vote post of jwestveer Down vote post of jwestveer
35k views
  • No one should use system PHP anyway on macOS, It is an old and insecure version. I would recommend installing PHP via brew  https://github.com/shivammathur/homebrew-php

  • Hi, I installed PHP via brew from shivammathur, (macOS Monterrey) How do I activate PHP? It's not being interpreted, what I see is the code when I load a PHP file. Thanks in advance

  • Have you tried making changes in httpd.conf file to read php files ?

Replies

This command should fix it

brew install php

َ

thanks to @LH16