

You need to enable (uncomment the line) and modify/update the configuration in nf file. Type sudo nano nf Enable the Modules and Configuration Type sudo cp nf and press enter (this step is optional if you want to keep the copy of the original config file.)

Type brew install httpd Configure the Homebrew version Apache (nf file) Once you have Homebrew installed and properly set the export, the next step is to install the Apache using Homebrew. echo 'export PATH="/opt/homebrew/bin:$PATH"' > $HOME/.zshrcĬlose the Terminal and re-open a new Terminal window. 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).
