

Then type the below command and press Enter. Open the Terminal and type the below command and press Enter. If you are getting the above error, you have to export the path by issuing the following commands. When you try to issue a brew command, you might get the below error. To learn more about Homebrew, check out How to use Homebrew on macOS 12 Monterey Export the Homebrew Path Note: if you don’t have Command Line Tools for Xcode installed, the Homebrew installer will download and install the Command Line Tools for Xcode first then it will proceed to complete the installation of Homebrew to your system. Open Terminal and paste the above command. If you don’t see the above, follow the below steps to install the Homebrew in your system.Ĭopy the command of /bin/bash -c "$(curl -fsSL )" This means you have Homebrew already installed. Homebrew/homebrew-core (git revision 359f9f16171 last commit ) If returns something like: Homebrew 3.3.0 Check if you have Homebrew install or knowing the installed Homebrew version The first thing you need to do is install Homebrew to your macOS 12 Monterey system (if you have not installed Homebrew yet). Open Terminal and type: sudo apachectl stop

Since we will not be using the macOS 12 built-in version of Apache, if your built-in Apache is running, issue the following command to stop the Apache service. Modify the nf to enable the PHP on Apache.Create Sites folder under your Username.Configure the Homebrew version Apache (nf file).
