How to set up Apache in Mac?
Published in
1 min readJun 21, 2018
Apache is built-in in Mac, So we just need turn on the service with root authorization.
- First, open your terminal and input following commands.
sudo su - // change to root authorization
apachectl start //turn on the apache
2. Open the browser and input http://localhost/. If you see “It works!”, it literally works.
3.Move the project files to /Library/WebServer/Documents/ in your Mac.
4. Input http://localhost/example/index.html (Depends on your project file structure.). You will see your project works!