Family Encyclopedia >> Electronics

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Want to safely test WordPress themes, plugins, and custom code before going live? Setting up WordPress locally on your Mac is an essential skill for developers and site builders. As experienced WordPress professionals, we've guided thousands through this process using MAMP, a reliable local server environment. Follow our proven steps below.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Tip: On Windows? See our tutorial for installing WordPress locally on Windows.

Setting Up MAMP on Your Mac

Start by downloading MAMP from the official website. Once downloaded, open the DMG file and drag the MAMP icon to your Applications folder. Follow the on-screen prompts to complete installation.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Launch MAMP from Applications » MAMP. Note: MAMP installs both the free version and MAMP Pro (paid); right-click the free MAMP app to open it.

Optimize your setup first. Open Preferences, go to the Ports tab, set Apache Port to 80, and click OK. This lets you access sites at https://localhost (instead of :8888), though you'll enter your admin password on server start.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Next, set your document root—the folder for your sites. In Preferences > Web Server tab, choose a convenient location like a subfolder in Documents (e.g., 'allwebsites').

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Click OK to save.

Installing WordPress on Mac

With MAMP running, download WordPress from WordPress.org and unzip it. Copy the 'wordpress' folder to your document root (e.g., /allwebsites/), and rename it (e.g., 'mysite').

WordPress requires a MySQL database. Click Open WebStart page in MAMP, then Tools » phpMyAdmin.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

In phpMyAdmin, click Databases, create a new one (e.g., 'test_db'), and note the name.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Now install: Visit https://localhost/mysite (use your folder name). Choose your language and continue.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

WordPress lists required info—click 'Let's go'. Enter database details: Name ('test_db'), Username/Password ('root'), Host ('localhost'). Submit.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

WordPress configures and prompts 'Run the installation'. Add site title, username, password, and email, then Install WordPress.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Success! Log in at https://localhost/mysite/wp-admin.

How to Install WordPress Locally on Mac with MAMP: Complete Step-by-Step Guide

Testing Your Local WordPress Site

Use your local setup to experiment safely:

  • Preview and test WordPress themes.
  • Install and configure essential plugins.
  • Develop custom themes or plugins.

Moving from Localhost to Live Site

Ready to launch? Get a domain and hosting. We recommend Bluehost, a top WordPress partner offering WPBeginner users discounted hosting and a free domain from $2.75/month.

Claim this exclusive Bluehost offer

Follow our guide to install WordPress on live hosting, or migrate from localhost if your site is ready.

That's it—you're set up for local WordPress development on Mac. Explore more WordPress site ideas next.

Subscribe to our YouTube channel for video tutorials, and follow us on Twitter and Facebook.