How to Install WordPress Locally on Mac using MAMP ? Step by Step

In this short article we will cover the step by step to install a wordpress website locally on your Mac using MAMP. Let’s get started –

Before we go into the steps let’s quickly recap –

Whats is MAMP ?

MAMP is a free, local server environment that can be installed on macOS and Windows, and helps provide all the tools one needs to run/test a wordpress website locally. It provides servers like Apache and Nginx in addition to MySQL as database server.

Now let’s get into the steps –

Step by Step to Install WordPress using MAMP

Step 1: Download and Install Free version of MAMP from it’s website here

Step 2: Once MAMP is installed launch the MAMP.app and start the server

(you can optionally change ports under preferences if some other local environments are running else it optionals and you can go ahead with the defaults)

Install MAMP for WordPress

This will open a a localhost site in your default browser (example: http://localhost:8888/MAMP/) you can click on the My website button to go to default site created for you at http://localhost:8888/

Step 3: Open Finder > Applications > MAMP and navigate to htdocs folder, this is where your wordpress websites files will live.

How to install WordPress on MAMP

Step 4: Download WordPress files (wordpress.zip) from its site here and unzip it in the htdocs folder from the above step this will create a wordpress folder under htdocs for you.

Step 5: Now go to http://localhost:8888/wordpress/ this will initiate the wordpress install page, choose your language and press continue.

Wordpress install in MAMP

Step 6: Next step will ask you to have these details handy

  1. Database name
  2. Database username
  3. Database password
  4. Database host

Since, we haven’t got these yet, let’s set these up –

Go to http://localhost:8888/phpMyAdmin/ in your browser to access phpMyAdmin (this is the tool where we create and mange the MySQL databases).

or you can also initiate this page by going to http://localhost:8888/MAMP/ and clicking Tools > phpMyAdmin in the page navigation.

Once phpMyAdmin opens click > New (enter a database name of your choice) and press create, this will create the database for you, don’t forget to keep the database name handy for next step.

Creating MySQL Database for WordPress in MAMP

The default database username and password for MAMP is root, and the host is localhost. So, given this now we have all the details we need –

  1. Database name: database_for_wordpress
  2. Database username: root
  3. Database password: root
  4. Database host: localhost

Step 7: Press Let’s Go in the WordPress screen from Step 5, this will open a window asking for details from Step 6.

Enter the details and press > Submit

Wordpress install on MAMP Locally

Step 8: Next window will prompt you to name your website as well as create an username and password for logging into wordpress later and completing the installation (use details that you can remember)

Local WordPress installation using MAMP on Mac

Once you enter the details like in the example above, press > Install WordPress to complete installation.

Now wordpress will ask you to login for the first time, using the login details we just setupped, login into your new wordpress site and it will open the dashboard for you where you can play with your new site.

Step 9: Go to http://localhost:8888/wordpress/ to see how your site looks, this is how mine looks.

This is how my new wordpress site looks on MAMP

Hope the article was helpful. Good day

Default image
Navjot Singh Virk
Navjot is a Hobby Blogger from Ireland and loves to create content to help people. He makes time on weekends to work on this blog. And has a full time position at Workday as Technical Product Manager, which he loves and thrives at. His Skills include in-depth knowledge of SEO, Javascript, Advertising, HTML, Java and Product Management. And his other hobbies include Investing, Gardening and playing Table Tennis.