How to install, start and test MAMP on Mac OSX

MAMP is a free distribution package that makes it easy to install Apache Web Server, PHP, and MySQL on a Mac.

This is outdated. Use these instructions instead.

Installing MAMP on a Mac

  1. Download the latest version of MAMP.
  2. Open the downloaded file (e.g., MAMP_MAMP_PRO_4.5.pkg) and click through the installation wizard.
  3. Close the installation wizard.

Running MAMP on OSX

To run MAMP...

  1. Navigate to Applications/MAMP in Finder and open
  2. Click Start Servers:
  3. The following page should open in your browser:

Class Files

  1. Download the class files
  2. After downloading the class files, create a folder in htdocs named "Webucator" and extract your class files in that folder.
  3. To test that your setup so far is correct, open your browser and navigate to http://localhost:8888/Webucator/ClassFiles/. You should get a listing like this:Class Files Listing
  4. Click PHPBasics, then click Demos, and then HelloWorld.php. You should get a page that looks like this:

Setting the MySQL Password

The PHP files use "pwdpwd" for the MySQL root password, while the default password used in MAMP is "root". In your browser, navigate to http://localhost:8888/phpmyadmin/.

Note: It is important to do these steps in the order specified.

  1. Click the mysql database on the left.
  2. Click the SQL tab at the top.
  3. Enter the following in the textbox under Run SQL query/queries on database mysql:
    SET Password=PASSWORD('pwdpwd');
  4. Click Go.
  5. You also need to update the password in /Applications/MAMP/bin/phpMyAdmin/ Open the file in your editor (e.g., Visual Studio Code) and change the password setting as show below to 'pwdpwd'.

Installing Northwind Database using MAMP

We use the Northwind database in this class.

  1. To install the Northwind database used in class, open your browser and navigate to http://localhost:8888/phpmyadmin.
  2. If it asks you to login, the username is "root" and the password is "pwdpwd".
  3. On that page, click on the Import link under the Localhost heading. After, it should say "Importing into the current server".
  4. Browse to the Northwind-MySQL.sql file in your class files (/Applications/MAMP/htdocs/Webucator/ClassFiles/Northwind-MySQL.sql).
  5. Click the Go button on the bottom left of the page.
  6. You should get a Success message and Northwind should be added to your list of Databases.

One Final Test

Point your browser to http://localhost:8888/Webucator/ClassFiles/ManagingData/Demos/EmployeeReport.php. If you see a page like this, you're all set:

And that's it

Happy Mac MAMPing!

Recommended Code Editor

Visual Studio Code (Download, Install, and Set up VS Code)

While you may use a different editor or IDE, Visual Studio Code is an excellent IDE to learn to code on. It provides a nice balance of power and simplicity and it is available on Windows and Mac.

Author: Nat Dunn

Nat Dunn is the founder of Webucator (, a company that has provided training for tens of thousands of students from thousands of organizations. Nat started the company in 2003 to combine his passion for technical training with his business expertise, and to help companies benefit from both. His previous experience was in sales, business and technical training, and management. Nat has an MBA from Harvard Business School and a BA in International Relations from Pomona College.

Follow Nat on Twitter at @natdunn and Webucator at @webucator.

About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.