Setup WordPress Locally on MAMP

This article covers how to setup WordPress Locally on MAMP (not MAMP Pro because i’m pretty poor).
I’m assuming you know what MAMP is, but just in case you dont, MAMP is the Mac OSX version of an application suite which includes Apache, MySQL, and PHP.

There are equivalent setups for Linux (LAMP) and Windows (WAMP)

It’s easier to get this packaged suite starting off than installing everything separately because of version mismatches, configuration, etc, but if you have certain instances setup already, by all means.

1. Installing MAMP

Lets go get MAMP first from MAMP Website
At the time of writing, the version I was grabbed was 4.0.5 for my El Capitan 10.11.6

Once MAMP is downloaded, double click the MAMP dmg file and follow the steps. Once complete it will be setup inside your Applications folder.

2. MAMP Configuration

Launch after the installation (double click MAMP within the Applications folder)
Starting MAMP, you may need to setup a password initially for the Apache and mySQL instances.
If everything works fine, you will see the following application window:

MAMP Window

It shows that both the Apache and MySQL server is started. If not, click on the Start Servers.
If there are any errors in the startup of BOTH servers, please check the following:


The default ports are 8888 and 8889 for Apache and MySQL respectively, if they are in use already by another application you can change them here. It’s also possible that there is something else wrong so check the logs directory for any possible issues.

3. Creating the Database

Once the MAMP servers are started, open up the MAMP page.
Click on “Open start page” in the MAMP dashboard, or navigate to http://localhost:8888/MAMP
(default ports).

Once the website is open, at the top open up the Tools and select phpMyAdmin.
Or you can just visit: http://localhost:8888/phpMyAdmin/?lang=en

MAMP Dashboard

Click the Databases at the top and then “Create database”, set a database name such as “wordpress”. Please keep this database name for later on during the WordPress configuration.

4. Finally WordPress

Technically the steps above is generic (other than the database name created), for any PHP development, but in this step we will focus on WordPress setup.

First, download the latest version of WordPress (4.6.1 at time of writing).
Link: WordPress Download

Extract the installation anywhere and after you are done, copy the “wordpress” directory to your MAMP’s htdoc folder.
This should be inside your Applications/MAMP/htdocs, which is the root web directory.
Go ahead and toss any other web content here. It will be served up if you type in a browser:

http://localhost:8888/<your file or directory>

In our case:


Once you navigate to this URL, and if this is your first time accessing WordPress, you will trigger the initial configuration.
You can setup WordPress with the defaults below:

  • Database Name: wordpress (match the one created in Step 3)
  • Username: root
  • Password: root
  • Database Server: localhost
  • Table Prefix: wp_ (this is the default)

After going through the wizard, you should be done.
If you are interested in creating your own plugin, please follow the link here:

Leave a Reply

Your email address will not be published. Required fields are marked *