This guide will help you with Code Signing. If you are using macOS in built shipped Apache, you can use the PHP but it needs to be Code Signed, before Monterey this practice was optional but now it is mandatory. then unlink and link in the new PHP version by issuing a command like below but with your correct version: brew unlink php & brew link -overwrite -force Using new PHP in macOS Monterey shipped Apache You should now see the new version, to change to another version just repeat the process from the brew install. Link the PHP Version brew link -overwrite -force Ĭhange your version to match Restart the Terminal So once you have Homebrew installed on your macOS a particular PHP Homebrew formulae will need to be added from this maintainer, what is great about this, is all PHP versions are available whereas only some versions are available on the default Homebrew formulas.Īfter Homebrew install, follow the below: Add the PHP formulae brew tap shivammathur/phpĬhoose the PHP version – this example uses 7.4 brew install shivammathur/php/ If you don’t have Homebrew installed, install it, here is a guide on how to install Homebrew. The latest macOS version Monterey 12 has removed PHP altogether from its operating system, there is a comment in the Apache config file nf that says: #PHP was deprecated in macOS 11 and removed from macOS 12įortunately you can install PHP and all the different PHP versions including 5.7, 7.4 and 8 with some help from Homebrew.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |