From the course: Installing Apache, MySQL, and PHP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Start and stop Apache on macOS

Start and stop Apache on macOS

From the course: Installing Apache, MySQL, and PHP

Start my 1-month free trial

Start and stop Apache on macOS

- [Instructor] Mac OS comes with Apache and PHP already installed, you just have to know how to activate and start both products. The steps I'll describe work in every version of Mac OS, starting with Mountain Lion and including the more recent versions, all the way up to the most recent as of this recording, Mac OS 10.15 Catalina. The steps I'll describe involve the use of Terminal. I'm going to start Terminal using the spotlight command by holding down the Command key and then the space bar. And I'll start typing the name of the application and then I'll select it. Each of these commands that I'm going to describe must be executed by what's known as the super user. There are a couple of ways of doing this. One approach is to prefix every command with sudo, that means super user do. And so for example, if I want to start up Apache, I'll type sudo, apachectl, and start. The first command that I execute will receive a…

Contents