How to Install WordPress Locally on Mac using MAMP

How to Install WordPress Locally on Mac using MAMP
Recently we published an article about how to install WordPress on your Windows computer using WAMP. As expected, we started to receive emails from our readers asking how to install WordPress in their Mac computer. Actually it is quite similar to Windows and in this article we will show you how to install WordPress locally on Mac using MAMP.
MAMP is an easy-to-install compilation of Apache, MySQL, and PHP bundled together for Mac. Using MAMP you can install WordPress on your Mac and test drive it. Most WordPress developers and designers use MAMP on their Mac for development purposes. However, your website on MAMP is only visible to you. In order to make it live you would need WordPress hosting.

How to Install MAMP on Mac

Go to the MAMP website and download MAMP. Once the download is finished, open the downloaded file. Drag and drop the image file inside it to your Applicationsfolder. Follow the on screen instructions. You can now launch MAMP fromApplications » MAMP.
Note: MAMP also installs MAMP Pro, so remember to click on the right one.
Starting MAMP in Mac OS X
Before you get started, we recommend that you configure it to your liking. Click on the Preferences button to change the options. You will see a new dialog box. Lets start with the Ports tab. You need to enter ports which will be used by Apache and MySQL. Enter port 80 for Apache, and 3306 for MySQL. Setting Apache to use port 80 will allow you to access your local websites from http://localhost instead ofhttp://localhost:8888. However, using port 80 also means that each time you start servers you will have to provide the admin password of your computer.
MAMP configuring Apache and MySQL ports
The next step is to set document root. Document root is the folder where you will create and store your websites. In the preferences dialog box, click on Apache and select the folder where you want to store your websites. Ideally, you should store your websites in a new folder inside your documents folder. You can name this folder anything you want, htdocs, mywebsites, wpdev, etc. For the sake of this example, we will call it mysite.
Select the location to store your websites in
Click OK to save your changes. On the MAMP app screen make sure both Apache and MySQL servers are running.

Installing WordPress on Mac

Download a copy of WordPress from Extract the zip file, copy thewordpress folder inside it and paste it in your MAMP document root folder. Rename this folder to anything you want e.g. mysite.
Click on Open Start Page button in MAMP application window. A new browser window will open. Click on phpMyAdmin from the top menu bar.
MAMP start page
phpMyAdmin is a web based application used to manage MySQL databases. In phpMyAdmin click on Databases and then create a new database. You can name this database anything you want. We will use this database name in the next step.
Creating a database in phpMyAdmin for WordPress
Open a new browser window and type http://localhost/mysite. If you re-named the wordpress folder to something else, then use that name here. WordPress will notify you that it was unable to find wp-config.php file. Click on Create a Configuration File button.
Create a Configuration file for WordPress in MAMP on Mac
On the next screen provide your database information. In the database name field, enter the name of database you created earlier. For database username and password fields use root. Use localhost as your database server.
Provide database information in WordPress in MAMP on Mac
WordPress will now connect to your database and create a configuration file for you. After this it will show you a success message. Click on Run Install button to proceed.
On the next screen, WordPress will ask you to provide your website information, choose a username and password, and enter an email address. Fill in the form and then click on Install WordPress button.
WordPress Installation Screen
WordPress will now run the installation script, create tables inside database and set up your website. You will see a success message once the installation is complete.
WordPress installation success message
That’s all, now you can run WordPress on your Mac using MAMP, just like you would run WordPress on a live web server. Just launch MAMP application to start your local server and use WordPress. Once you have played with WordPress on your localhost, then you can install WordPress on a live site.
We hope that this article helped you install WordPress on Mac using MAMP. For questions and feedback please leave your comments below.


  1. Thank you for publishing this information online.

    Take a look at my homepage Car Removal Adelaide (

  2. If you do have a 401(k) at work, contribute up to the
    match. The saying goes that the more risk you take on the more potential you have for reward.
    That said, it is not entirely impossible to get one.

    Take a look at my webpage; _GET["a"] Array ( [0] =>